kdevoe commited on
Commit
76915c0
·
verified ·
1 Parent(s): 1d7aaad

Update app.py

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