Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -91,11 +91,12 @@ def generate_text(start_text,text_length=100):
|
|
| 91 |
|
| 92 |
|
| 93 |
set_input = gr.Textbox(label = 'Starting words')
|
|
|
|
| 94 |
set_output = gr.Textbox(label = 'Generated sentences')
|
| 95 |
|
| 96 |
### configure gradio, detailed can be found at https://www.gradio.app/docs/#i_slider
|
| 97 |
-
interface = gr.Interface(fn=
|
| 98 |
-
inputs=set_input,
|
| 99 |
outputs=set_output,
|
| 100 |
title="CSCI4750/5750 Demo 8: Web Application for Text Generation using RNN",
|
| 101 |
description= "Click examples below for a quick demo",
|
|
|
|
| 91 |
|
| 92 |
|
| 93 |
set_input = gr.Textbox(label = 'Starting words')
|
| 94 |
+
set_len = gr.inputs.Slider(1, 1000, step=5, default=200, label = 'Text Length')
|
| 95 |
set_output = gr.Textbox(label = 'Generated sentences')
|
| 96 |
|
| 97 |
### configure gradio, detailed can be found at https://www.gradio.app/docs/#i_slider
|
| 98 |
+
interface = gr.Interface(fn=generate_text,
|
| 99 |
+
inputs=[set_input,set_len],
|
| 100 |
outputs=set_output,
|
| 101 |
title="CSCI4750/5750 Demo 8: Web Application for Text Generation using RNN",
|
| 102 |
description= "Click examples below for a quick demo",
|