Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ demo = gr.Interface(
|
|
34 |
title="TextIteratorStreamer + Gradio demo",
|
35 |
fn=generate,
|
36 |
inputs=[gr.Textbox(lines=5, label="Input Text"),
|
37 |
-
gr.Slider(
|
38 |
outputs=gr.Textbox(label="Generated Text"),
|
39 |
allow_flagging="never"
|
40 |
)
|
|
|
34 |
title="TextIteratorStreamer + Gradio demo",
|
35 |
fn=generate,
|
36 |
inputs=[gr.Textbox(lines=5, label="Input Text"),
|
37 |
+
gr.Slider(value=128,minimum=5, maximum=256, step=1, label="Maximum number of new tokens")],
|
38 |
outputs=gr.Textbox(label="Generated Text"),
|
39 |
allow_flagging="never"
|
40 |
)
|