Spaces:
Runtime error
Runtime error
Commit
·
d14b081
1
Parent(s):
760893e
Update app.py
Browse files
app.py
CHANGED
@@ -99,6 +99,7 @@ questions = []
|
|
99 |
Quiz = st.form("Quiz")
|
100 |
for i, question in enumerate(question_list):
|
101 |
if "Explain" not in question and len(tool.check(question)) == 0 and grammar_sense(question) == "Make Sense":
|
|
|
102 |
questions.append(f"{question}")
|
103 |
|
104 |
scores = []
|
@@ -109,6 +110,7 @@ ans = []
|
|
109 |
user_scores = []
|
110 |
|
111 |
for i, question in enumerate(questions):
|
|
|
112 |
res = Quiz.text_input(f'{question}')
|
113 |
ans.append(res)
|
114 |
|
@@ -116,6 +118,7 @@ submit_button = Quiz.form_submit_button("Submit")
|
|
116 |
|
117 |
if submit_button:
|
118 |
for i, q in enumerate(questions):
|
|
|
119 |
result = client.predict(
|
120 |
f'What would you rate this answer to the question: "{q}" as a percentage? Here is the answer: {ans[i]}. Make sure to write your answer as "Score" and then write your score of the response.',
|
121 |
0.9,
|
|
|
99 |
Quiz = st.form("Quiz")
|
100 |
for i, question in enumerate(question_list):
|
101 |
if "Explain" not in question and len(tool.check(question)) == 0 and grammar_sense(question) == "Make Sense":
|
102 |
+
st.progress(i)
|
103 |
questions.append(f"{question}")
|
104 |
|
105 |
scores = []
|
|
|
110 |
user_scores = []
|
111 |
|
112 |
for i, question in enumerate(questions):
|
113 |
+
st.progress(i)
|
114 |
res = Quiz.text_input(f'{question}')
|
115 |
ans.append(res)
|
116 |
|
|
|
118 |
|
119 |
if submit_button:
|
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]}. Make sure to write your answer as "Score" and then write your score of the response.',
|
124 |
0.9,
|