Add misspelled pairs to writing grading.
This commit is contained in:
2
app.py
2
app.py
@@ -204,6 +204,7 @@ def grade_writing_task_1():
|
||||
response = make_openai_instruct_call(GPT_3_5_TURBO_INSTRUCT, message, token_count,
|
||||
["comment"],
|
||||
GEN_QUESTION_TEMPERATURE)
|
||||
response['misspelled_pairs'] = get_misspelled_pairs(answer)
|
||||
return response
|
||||
else:
|
||||
return {
|
||||
@@ -256,6 +257,7 @@ def grade_writing_task_2():
|
||||
response = make_openai_instruct_call(GPT_3_5_TURBO_INSTRUCT, message, token_count,
|
||||
["comment"],
|
||||
GEN_QUESTION_TEMPERATURE)
|
||||
response['misspelled_pairs'] = get_misspelled_pairs(answer)
|
||||
return response
|
||||
else:
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user