Update app.py
Browse files
app.py
CHANGED
|
@@ -2,11 +2,11 @@ import gradio as gr
|
|
| 2 |
|
| 3 |
def change_textbox(choice):
|
| 4 |
if choice == "short":
|
| 5 |
-
return gr.
|
| 6 |
elif choice == "long":
|
| 7 |
-
return gr.
|
| 8 |
else:
|
| 9 |
-
return gr.
|
| 10 |
|
| 11 |
|
| 12 |
with gr.Blocks() as block:
|
|
|
|
| 2 |
|
| 3 |
def change_textbox(choice):
|
| 4 |
if choice == "short":
|
| 5 |
+
return gr.Textbox.update(lines=2, visible=True)
|
| 6 |
elif choice == "long":
|
| 7 |
+
return gr.Textbox.update(lines=8, visible=True)
|
| 8 |
else:
|
| 9 |
+
return gr.Textbox.update(visible=False)
|
| 10 |
|
| 11 |
|
| 12 |
with gr.Blocks() as block:
|