Spaces:
Runtime error
Runtime error
Commit
·
db1e6ad
1
Parent(s):
1803787
Update app.py
Browse files
app.py
CHANGED
@@ -118,7 +118,7 @@ submit_button = Quiz.form_submit_button("Submit")
|
|
118 |
if submit_button:
|
119 |
st.toast("Calculating grade", icon='✅')
|
120 |
for i, q in enumerate(questions):
|
121 |
-
st.progress(i)
|
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,
|
|
|
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,
|