dantedgp commited on
Commit
fca4e51
·
1 Parent(s): 5b83584

Adding Gen buttont

Browse files
Files changed (1) hide show
  1. app.py +3 -8
app.py CHANGED
@@ -16,14 +16,9 @@ def generate_questions(txt):
16
 
17
  st.set_page_config(page_title='AI Quiz Generator')
18
  st.title('AI Quiz Generator')
19
-
20
- # Text input
21
- result = []
22
  txt_input = st.text_area('Enter your text', '', height=200)
 
23
 
24
- if txt_input is not None:
25
- col = st.columns(1)
26
  questions = generate_questions(txt_input)
27
-
28
- col.header("Questions")
29
- col.write(questions)
 
16
 
17
  st.set_page_config(page_title='AI Quiz Generator')
18
  st.title('AI Quiz Generator')
 
 
 
19
  txt_input = st.text_area('Enter your text', '', height=200)
20
+ generate_button = st.button("Generate Questions")
21
 
22
+ if generate_button:
 
23
  questions = generate_questions(txt_input)
24
+ st.write(questions)