BillBojangeles2000 commited on
Commit
c32186d
β€’
1 Parent(s): 82da3f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -67,8 +67,9 @@ def grammar_sense(sentence):
67
  Quiz_Gen = st.form("Quiz Generation")
68
  res = Quiz_Gen.text_input("What topic do you want to get quizzed on?")
69
  sub = Quiz_Gen.form_submit_button("Submit")
70
-
71
- if not res:
 
72
  entity = res
73
  prefix = "https://wiki.kidzsearch.com/wiki/"
74
  page = requests.get(f'{prefix}{entity}')
@@ -101,7 +102,6 @@ if not res:
101
 
102
  Quiz = st.form("Quiz")
103
  st.toast("Filtering Questions", icon='βœ…')
104
- submit_button = False
105
  # Check if questions are generated in session state
106
  if 'questions' in st.session_state:
107
  question_index = 0
 
67
  Quiz_Gen = st.form("Quiz Generation")
68
  res = Quiz_Gen.text_input("What topic do you want to get quizzed on?")
69
  sub = Quiz_Gen.form_submit_button("Submit")
70
+ while not sub:
71
+ x=2
72
+ if sub:
73
  entity = res
74
  prefix = "https://wiki.kidzsearch.com/wiki/"
75
  page = requests.get(f'{prefix}{entity}')
 
102
 
103
  Quiz = st.form("Quiz")
104
  st.toast("Filtering Questions", icon='βœ…')
 
105
  # Check if questions are generated in session state
106
  if 'questions' in st.session_state:
107
  question_index = 0