Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -187,8 +187,8 @@ with gr.Blocks(theme="soft") as app:
|
|
187 |
See how well you know what you know. Enter a category and a quiz will be generated. Answer the True/False questions about it, and scores will then be calculated on your knowledge of the category, and on your ***knowledge of your knowledge*** of the category.""")
|
188 |
with gr.Row():
|
189 |
category_input = gr.Textbox(label="Category", placeholder="general knowledge", scale=4)
|
190 |
-
num_categories_input = gr.Number(label="Number of Subcategories", value=
|
191 |
-
num_questions_input = gr.Number(label="Questions per Subcategory", value=5, scale=1)
|
192 |
total_questions_display = gr.Number(label="Total Questions in Quiz", value=30, scale=1)
|
193 |
submit_category = gr.Button("Generate Quiz")
|
194 |
question_area = gr.Markdown(visible=False)
|
|
|
187 |
See how well you know what you know. Enter a category and a quiz will be generated. Answer the True/False questions about it, and scores will then be calculated on your knowledge of the category, and on your ***knowledge of your knowledge*** of the category.""")
|
188 |
with gr.Row():
|
189 |
category_input = gr.Textbox(label="Category", placeholder="general knowledge", scale=4)
|
190 |
+
num_categories_input = gr.Number(label="Number of Subcategories", value=5, scale=1, maximum=6)
|
191 |
+
num_questions_input = gr.Number(label="Questions per Subcategory", value=5, scale=1, maximum=6)
|
192 |
total_questions_display = gr.Number(label="Total Questions in Quiz", value=30, scale=1)
|
193 |
submit_category = gr.Button("Generate Quiz")
|
194 |
question_area = gr.Markdown(visible=False)
|