Update app.py
Browse files
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)
|