Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -40,7 +40,7 @@ import gradio as gr
|
|
| 40 |
gr.close_all()
|
| 41 |
demo = gr.Interface(fn=gen_quiz,
|
| 42 |
inputs=[gr.Textbox(label="Text to generate quiz from", lines=6),
|
| 43 |
-
gr.Slider(minimum=1, maximum=10, value=
|
| 44 |
outputs=[gr.Textbox(label="Result", lines=10)],
|
| 45 |
examples=[[text_example, 3]],
|
| 46 |
title="Quiz Generator with LlamaCpp",
|
|
|
|
| 40 |
gr.close_all()
|
| 41 |
demo = gr.Interface(fn=gen_quiz,
|
| 42 |
inputs=[gr.Textbox(label="Text to generate quiz from", lines=6),
|
| 43 |
+
gr.Slider(minimum=1, maximum=10, value=3, step=1, label="Number of Quiz")],
|
| 44 |
outputs=[gr.Textbox(label="Result", lines=10)],
|
| 45 |
examples=[[text_example, 3]],
|
| 46 |
title="Quiz Generator with LlamaCpp",
|