Spaces:
Runtime error
Runtime error
Commit
·
e68f24a
1
Parent(s):
ad2a25d
Update app.py
Browse files
app.py
CHANGED
@@ -97,13 +97,16 @@ 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"Question: {question}")
|
|
|
101 |
scores = []
|
102 |
client = Client("https://billbojangeles2000-zephyr-7b-alpha-chatbot-karki.hf.space/")
|
103 |
ans = []
|
104 |
for i in questions:
|
105 |
-
res = Quiz.text_input(i
|
106 |
ans.append(res)
|
|
|
|
|
107 |
for i in ans:
|
108 |
for q in question:
|
109 |
result = client.predict(
|
|
|
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 {i + 1}: {question}")
|
101 |
+
|
102 |
scores = []
|
103 |
client = Client("https://billbojangeles2000-zephyr-7b-alpha-chatbot-karki.hf.space/")
|
104 |
ans = []
|
105 |
for i in questions:
|
106 |
+
res = Quiz.text_input(i)
|
107 |
ans.append(res)
|
108 |
+
|
109 |
+
Quiz.form_submit_button("Submit")
|
110 |
for i in ans:
|
111 |
for q in question:
|
112 |
result = client.predict(
|