Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -20,11 +20,11 @@ with gr.Blocks() as demo:
|
|
20 |
with gr.Group():
|
21 |
text = gr.TextArea(label="Text")
|
22 |
length = gr.Number(label="Length", value=25)
|
23 |
-
with gr.Column():
|
24 |
-
btn = gr.Button("Generate", variant="primary")
|
25 |
-
clear = gr.Button("Clear")
|
26 |
with gr.Row():
|
27 |
-
|
|
|
|
|
|
|
28 |
|
29 |
btn.click(generate, [text, length], [text])
|
30 |
clear.click(lambda: "", [], [text])
|
|
|
20 |
with gr.Group():
|
21 |
text = gr.TextArea(label="Text")
|
22 |
length = gr.Number(label="Length", value=25)
|
|
|
|
|
|
|
23 |
with gr.Row():
|
24 |
+
btn = gr.Button("Generate", variant="primary")
|
25 |
+
clear = gr.Button("Clear")
|
26 |
+
with gr.Column():
|
27 |
+
examples = gr.Examples(generate_examples(), [text])
|
28 |
|
29 |
btn.click(generate, [text, length], [text])
|
30 |
clear.click(lambda: "", [], [text])
|