kdevoe commited on
Commit
bf56343
·
verified ·
1 Parent(s): c298e21

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -16,10 +16,9 @@ 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[0]]
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)
23
 
24
  # Display the initial scores table
25
  st.table(scores_df)
 
16
 
17
  if st.button("Calculate Scores"):
18
  scores = inference(user_input)
19
+ scores = [round(score * 2, 1) / 2 for score in scores[0]]
20
  new_table = {categories[i]: scores[i] for i in range(len(categories))}
21
  scores_df = pd.DataFrame(new_table, index=['Score'])
 
22
 
23
  # Display the initial scores table
24
  st.table(scores_df)