Spaces:
Build error
Build error
Update app.py
Browse files
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")],
|
| 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 )
|