kdevoe commited on
Commit
0aac206
·
verified ·
1 Parent(s): e940cb0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ user_input = st.text_area("Enter your essay here:", value=text)
16
 
17
  if st.button("Calculate Scores"):
18
  scores = inference(user_input)
19
- scores = [round(score * 2) / 2 for score in scores]
20
  new_table = {categories[i]: scores[i] for i in range(len(categories))}
21
  scores_df = pd.DataFrame(new_table, index=['Score'])
22
  st.table(scores_df)
 
16
 
17
  if st.button("Calculate Scores"):
18
  scores = inference(user_input)
19
+ #scores = [round(score * 2) / 2 for score in scores]
20
  new_table = {categories[i]: scores[i] for i in range(len(categories))}
21
  scores_df = pd.DataFrame(new_table, index=['Score'])
22
  st.table(scores_df)