ryryllm commited on
Commit
a5c9862
1 Parent(s): 2b1b4ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -105,7 +105,7 @@ def generate_and_evaluate(new_question, user_answer):
105
  model="gpt-4o",
106
  messages=[
107
  {"role": "system", "content": "You are a world history grader."},
108
- {"role": "user", "content": f"Evaluate the following answer:\n\nQuestion: {new_question}\nAnswer: {user_answer}\n\nProvide a score between 0 and 100, taking into account partial correctness. Only return the numerical score."}
109
  ],
110
  max_tokens=100
111
  )
 
105
  model="gpt-4o",
106
  messages=[
107
  {"role": "system", "content": "You are a world history grader."},
108
+ {"role": "user", "content": f"Evaluate the following answer:\n\nQuestion: {new_question}\nAnswer: {user_answer}\n\nProvide a score between 0 and 100, taking into account partial correctness. Only return the numerical score.If it's blank, please make it 0."}
109
  ],
110
  max_tokens=100
111
  )