Update app.py
Browse files
app.py
CHANGED
@@ -16,12 +16,10 @@ user_input = st.text_area("Enter your essay here:", value=text)
|
|
16 |
|
17 |
if st.button("Calculate Scores"):
|
18 |
scores = inference(user_input)
|
19 |
-
st.write(scores)
|
20 |
-
st.write(categories)
|
21 |
scores = [round(score * 2) / 2 for score in scores[0]]
|
22 |
new_table = {categories[i]: scores[i] for i in range(len(categories))}
|
23 |
scores_df = pd.DataFrame(new_table, index=['Score'])
|
24 |
-
st.table(scores_df)
|
25 |
|
26 |
# Display the initial scores table
|
27 |
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[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)
|