Spaces:
Runtime error
Runtime error
Commit
·
ffa9454
1
Parent(s):
db1e6ad
Update app.py
Browse files
app.py
CHANGED
@@ -117,8 +117,8 @@ submit_button = Quiz.form_submit_button("Submit")
|
|
117 |
|
118 |
if submit_button:
|
119 |
st.toast("Calculating grade", icon='✅')
|
|
|
120 |
for i, q in enumerate(questions):
|
121 |
-
st.progress(i+1, text="Calculating Grade")
|
122 |
result = client.predict(
|
123 |
f'What would you rate this answer to the question: "{q}" as a percentage? Here is the answer: {ans[i]}. Your percentage grade cannot be negative or over 100%. Additionally, you should also assume that the user is of a 5-7th grade level of intellect.',
|
124 |
0.9,
|
@@ -142,4 +142,5 @@ if submit_button:
|
|
142 |
|
143 |
st.info(f'Your average score for the answers is {average_score}%')
|
144 |
st.write(f'Your average score for the answers is {average_score}%')
|
145 |
-
|
|
|
|
117 |
|
118 |
if submit_button:
|
119 |
st.toast("Calculating grade", icon='✅')
|
120 |
+
st.spinner(text="Calculating Grade")
|
121 |
for i, q in enumerate(questions):
|
|
|
122 |
result = client.predict(
|
123 |
f'What would you rate this answer to the question: "{q}" as a percentage? Here is the answer: {ans[i]}. Your percentage grade cannot be negative or over 100%. Additionally, you should also assume that the user is of a 5-7th grade level of intellect.',
|
124 |
0.9,
|
|
|
142 |
|
143 |
st.info(f'Your average score for the answers is {average_score}%')
|
144 |
st.write(f'Your average score for the answers is {average_score}%')
|
145 |
+
|
146 |
+
st.balloons()
|