Spaces:
Build error
Build error
Commit ·
a6da76a
1
Parent(s): 6fca7cb
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,13 +11,13 @@ def clear_text(input_text):
|
|
| 11 |
|
| 12 |
iface = gr.Interface(
|
| 13 |
fn=generate_text,
|
| 14 |
-
inputs=gr.inputs.Textbox(
|
| 15 |
outputs=gr.outputs.Textbox(label="Generated Text", lines=5),
|
| 16 |
title="Text Generator",
|
| 17 |
theme="compact"
|
| 18 |
)
|
| 19 |
|
| 20 |
# Adding an additional input for clearing text
|
| 21 |
-
iface.add_input("textbox", label="Clear", type="
|
| 22 |
|
| 23 |
iface.launch()
|
|
|
|
| 11 |
|
| 12 |
iface = gr.Interface(
|
| 13 |
fn=generate_text,
|
| 14 |
+
inputs=gr.inputs.Textbox(lines=5, placeholder="Input Text..."),
|
| 15 |
outputs=gr.outputs.Textbox(label="Generated Text", lines=5),
|
| 16 |
title="Text Generator",
|
| 17 |
theme="compact"
|
| 18 |
)
|
| 19 |
|
| 20 |
# Adding an additional input for clearing text
|
| 21 |
+
iface.add_input("textbox", label="Clear", type="text", lines=1, placeholder="Clear text")
|
| 22 |
|
| 23 |
iface.launch()
|