RobPruzan commited on
Commit
223b40e
·
1 Parent(s): b549318

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -221,11 +221,11 @@ def predict(text, tokenizer=tokenizer):
221
 
222
 
223
  def level(score):
224
- if score <= 3:
225
  return "n Elementary School"
226
- elif 3 <= score <= 6:
227
  return " Middle School"
228
- elif 6 <= score <= 8:
229
  return " High School"
230
  else:
231
  return " College"
 
221
 
222
 
223
  def level(score):
224
+ if score <= 2.5:
225
  return "n Elementary School"
226
+ elif 2.5 <= score <= 5:
227
  return " Middle School"
228
+ elif 5 <= score <= 7.5:
229
  return " High School"
230
  else:
231
  return " College"