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
|
191 |
-
num_questions_input = gr.Number(label="Questions per
|
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)
|
@@ -254,8 +254,8 @@ with gr.Blocks(theme="soft") as app:
|
|
254 |
def make_uninteractive():
|
255 |
return (
|
256 |
gr.update(interactive=False),
|
257 |
-
gr.update(interactive=False),
|
258 |
-
gr.update(interactive=False)
|
259 |
)
|
260 |
|
261 |
submit_category.click(
|
|
|
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=6, scale=1)
|
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)
|
|
|
254 |
def make_uninteractive():
|
255 |
return (
|
256 |
gr.update(interactive=False),
|
257 |
+
gr.update(interactive=False, visible=False),
|
258 |
+
gr.update(interactive=False, visible=False)
|
259 |
)
|
260 |
|
261 |
submit_category.click(
|