Norod78 commited on
Commit
8b3392b
1 Parent(s): d0b16f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -33,9 +33,9 @@ def generate(text = "", max_new_tokens = 128):
33
  demo = gr.Interface(
34
  title="TextIteratorStreamer + Gradio demo",
35
  fn=generate,
36
- inputs=[gr.inputs.Textbox(lines=5, label="Input Text"),
37
- gr.inputs.Slider(default=128,minimum=5, maximum=256, step=1, label="Maximum number of new tokens")],
38
- outputs=gr.outputs.Textbox(label="Generated Text"),
39
  allow_flagging="never"
40
  )
41
 
 
33
  demo = gr.Interface(
34
  title="TextIteratorStreamer + Gradio demo",
35
  fn=generate,
36
+ inputs=[gr.Textbox(lines=5, label="Input Text"),
37
+ gr.Slider(default=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
  )
41