Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -15,10 +15,10 @@ with gr.Blocks() as demo:
|
|
15 |
gr.Markdown("# 🦊 textgen")
|
16 |
with gr.Group():
|
17 |
text = gr.TextArea(label="Text")
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
|
23 |
btn.click(generate, [text, length], [text])
|
24 |
clear.click(lambda: "", [], [text])
|
|
|
15 |
gr.Markdown("# 🦊 textgen")
|
16 |
with gr.Group():
|
17 |
text = gr.TextArea(label="Text")
|
18 |
+
length = gr.Number(label="Length", value=25)
|
19 |
+
with gr.Row():
|
20 |
+
btn = gr.Button("Generate", variant="primary")
|
21 |
+
clear = gr.Button("Clear")
|
22 |
|
23 |
btn.click(generate, [text, length], [text])
|
24 |
clear.click(lambda: "", [], [text])
|