Spaces:
Sleeping
Sleeping
Adding Gen buttont
Browse files
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
|
| 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)
|
|
|
|
|
|