Neurolingua commited on
Commit
fb08a60
1 Parent(s): 621e533

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -209,15 +209,15 @@ def calculate_score_and_grade(llm_response):
209
  percentage = (total_score / max_possible_score) * 100 if max_possible_score > 0 else 0
210
 
211
  if percentage > 90:
212
- grade = 'O'
213
  elif 80 <= percentage <= 90:
214
- grade = 'A'
215
  elif 70 <= percentage < 80:
216
- grade = 'B'
217
  elif 60 <= percentage < 70:
218
- grade = 'C'
219
  elif 50 <= percentage < 60:
220
- grade = 'D'
221
  else:
222
  grade = 'Fail'
223
 
 
209
  percentage = (total_score / max_possible_score) * 100 if max_possible_score > 0 else 0
210
 
211
  if percentage > 90:
212
+ grade = 'O-grade'
213
  elif 80 <= percentage <= 90:
214
+ grade = 'A-grade'
215
  elif 70 <= percentage < 80:
216
+ grade = 'B-grade'
217
  elif 60 <= percentage < 70:
218
+ grade = 'C-grade'
219
  elif 50 <= percentage < 60:
220
+ grade = 'D-grade'
221
  else:
222
  grade = 'Fail'
223