Neurolingua commited on
Commit
d15a225
1 Parent(s): 88db748

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -206,7 +206,7 @@ def calculate_score_and_grade(llm_response):
206
  total_score = int(total_score)
207
  max_possible_score = int(max_possible_score)
208
 
209
- percentage = (total_score / max_possible_score) * 100 if max_possible_score > 0 else 0
210
 
211
  if percentage > 90:
212
  grade = 'O-grade'
 
206
  total_score = int(total_score)
207
  max_possible_score = int(max_possible_score)
208
 
209
+ percentage = (max_possible_score/total_score) * 100 if max_possible_score > 0 else 0
210
 
211
  if percentage > 90:
212
  grade = 'O-grade'