ymcmy commited on
Commit
4d67a1a
·
verified ·
1 Parent(s): 115e448

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -20,10 +20,10 @@ def lucky_button(num_questions):
20
 
21
  interface = gr.Interface(
22
  fn=lucky_button,
23
- inputs=gr.inputs.Slider(minimum=1, maximum=20, step=1, default=5, label="Number of Questions"),
24
- outputs="file",
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()