Update app.py
Browse files
app.py
CHANGED
|
@@ -20,10 +20,10 @@ def lucky_button(num_questions):
|
|
| 20 |
|
| 21 |
interface = gr.Interface(
|
| 22 |
fn=lucky_button,
|
| 23 |
-
inputs=gr.
|
| 24 |
-
outputs="
|
| 25 |
title="Random AMC/AIME Problem PDF Generator",
|
| 26 |
description="Click the button to generate a random PDF of AMC/AIME problems. You can specify the number of questions to include in the PDF."
|
| 27 |
)
|
| 28 |
|
| 29 |
-
interface.launch()
|
|
|
|
| 20 |
|
| 21 |
interface = gr.Interface(
|
| 22 |
fn=lucky_button,
|
| 23 |
+
inputs=gr.Slider(minimum=1, maximum=20, step=1, value=5, label="Number of Questions"),
|
| 24 |
+
outputs=gr.File(label="Generated PDF"),
|
| 25 |
title="Random AMC/AIME Problem PDF Generator",
|
| 26 |
description="Click the button to generate a random PDF of AMC/AIME problems. You can specify the number of questions to include in the PDF."
|
| 27 |
)
|
| 28 |
|
| 29 |
+
interface.launch()
|