Spaces:
Runtime error
Runtime error
Commit
·
3015f0f
1
Parent(s):
e68f24a
Update app.py
Browse files
app.py
CHANGED
@@ -97,14 +97,15 @@ questions = []
|
|
97 |
Quiz = st.form("Quiz")
|
98 |
for i, question in enumerate(question_list):
|
99 |
if "Explain" not in question and len(tool.check(question)) == 0 and grammar_sense(question) == "Make Sense":
|
100 |
-
questions.append(f"
|
101 |
|
102 |
scores = []
|
103 |
client = Client("https://billbojangeles2000-zephyr-7b-alpha-chatbot-karki.hf.space/")
|
104 |
ans = []
|
105 |
-
for
|
106 |
-
|
107 |
-
|
|
|
108 |
|
109 |
Quiz.form_submit_button("Submit")
|
110 |
for i in ans:
|
|
|
97 |
Quiz = st.form("Quiz")
|
98 |
for i, question in enumerate(question_list):
|
99 |
if "Explain" not in question and len(tool.check(question)) == 0 and grammar_sense(question) == "Make Sense":
|
100 |
+
questions.append(f"{question}")
|
101 |
|
102 |
scores = []
|
103 |
client = Client("https://billbojangeles2000-zephyr-7b-alpha-chatbot-karki.hf.space/")
|
104 |
ans = []
|
105 |
+
for x in enumerate(question_list):
|
106 |
+
for i in questions:
|
107 |
+
res = Quiz.text_input(f'Question {x}:{i}')
|
108 |
+
ans.append(res)
|
109 |
|
110 |
Quiz.form_submit_button("Submit")
|
111 |
for i in ans:
|