BillBojangeles2000 commited on
Commit
3015f0f
·
1 Parent(s): e68f24a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
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"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:
 
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: