gabrielganan commited on
Commit
51e9979
·
verified ·
1 Parent(s): c2aff79

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -68,6 +68,9 @@ def process_and_grade(file_path, non_question_columns_str):
68
 
69
 
70
  def grade_answer(question, participant_answer, key_answer):
 
 
 
71
  """
72
  Call the fine-tuned model to grade an answer based on the question,
73
  the participant's answer, and the key answer.
@@ -103,7 +106,7 @@ iface = gr.Interface(
103
  gr.Textbox(lines=2, placeholder="Column1, Column2, Column3, ...", label="Non-Question Columns Like Nams, Id, etc."),
104
  ],
105
  outputs=gr.File(label="Download Graded Results"),
106
- title="Essay Question Grading",
107
  description="Upload a spreadsheet and specify non-question columns (separated by commas) to grade. Format your Excel file with the 1st row for questions and the last row for key answers.",
108
  allow_flagging="never"
109
  )
 
68
 
69
 
70
  def grade_answer(question, participant_answer, key_answer):
71
+ question = str(question)
72
+ participant_answer = str(participant_answer)
73
+ key_answer = str(participant_answer)
74
  """
75
  Call the fine-tuned model to grade an answer based on the question,
76
  the participant's answer, and the key answer.
 
106
  gr.Textbox(lines=2, placeholder="Column1, Column2, Column3, ...", label="Non-Question Columns Like Nams, Id, etc."),
107
  ],
108
  outputs=gr.File(label="Download Graded Results"),
109
+ title="Essay Question Grading V0.01",
110
  description="Upload a spreadsheet and specify non-question columns (separated by commas) to grade. Format your Excel file with the 1st row for questions and the last row for key answers.",
111
  allow_flagging="never"
112
  )