Updated has_10_words to has_50_words
This commit is contained in:
6
app.py
6
app.py
@@ -368,7 +368,7 @@ def grade_speaking_task_1():
|
||||
|
||||
download_firebase_file(FIREBASE_BUCKET, answer_firebase_path, sound_file_name)
|
||||
answer = speech_to_text(sound_file_name)
|
||||
if has_10_words(answer):
|
||||
if has_50_words(answer):
|
||||
message = ("Evaluate the given Speaking Part 1 response based on the IELTS grading system, ensuring a "
|
||||
"strict assessment that penalizes errors. Deduct points for deviations from the task, and "
|
||||
"assign a score of 0 if the response fails to address the question. Additionally, provide "
|
||||
@@ -447,7 +447,7 @@ def grade_speaking_task_2():
|
||||
|
||||
download_firebase_file(FIREBASE_BUCKET, answer_firebase_path, sound_file_name)
|
||||
answer = speech_to_text(sound_file_name)
|
||||
if has_10_words(answer):
|
||||
if has_50_words(answer):
|
||||
message = ("Evaluate the given Speaking Part 2 response based on the IELTS grading system, ensuring a "
|
||||
"strict assessment that penalizes errors. Deduct points for deviations from the task, and "
|
||||
"assign a score of 0 if the response fails to address the question. Additionally, provide "
|
||||
@@ -559,7 +559,7 @@ def grade_speaking_task_3():
|
||||
text_answers.append(answer_text)
|
||||
item["answer"] = answer_text
|
||||
os.remove(sound_file_name)
|
||||
if not has_10_words(answer_text):
|
||||
if not has_50_words(answer_text):
|
||||
return {
|
||||
"comment": "The audio recorded does not contain enough english words to be graded.",
|
||||
"overall": 0,
|
||||
|
||||
Reference in New Issue
Block a user