FahadAlam commited on
Commit
3108870
·
1 Parent(s): 3363b3e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,5 +9,5 @@ def text_generator(sample, max_length):
9
 
10
  examples = [["Hello, I'm a language model", "45"], ["Hello, I'm a designer", "30"]]
11
 
12
- demo = gr.Interface(fn=text_generator, inputs=[gr.Textbox(lines=2, placeholder="Enter sample text here", label="Sample text"), gr.Textbox(lines=1, label="Length of generated text")], outputs=[gr.Textbox(label="Generated text 1"), gr.Textbox(label="Generated text 2"), gr.Textbox(label="Generated text 3")], title="Text Generator", examples=examples)
13
  demo.launch( debug = True )
 
9
 
10
  examples = [["Hello, I'm a language model", "45"], ["Hello, I'm a designer", "30"]]
11
 
12
+ demo = gr.Interface(fn=text_generator, inputs=[gr.Textbox(lines=2, placeholder="Enter sample text here", label="Sample text"), gr.Textbox(lines=1, label="Length of generated text")], outputs=[gr.Textbox(label="Generated text 1"), gr.Textbox(label="Generated text 2"), gr.Textbox(label="Generated text 3")], examples=examples)
13
  demo.launch( debug = True )