abidlabs HF staff commited on
Commit
96052ed
1 Parent(s): fbd703e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -2,11 +2,11 @@ import gradio as gr
2
 
3
  def change_textbox(choice):
4
  if choice == "short":
5
- return gr.Radio.update(lines=2, visible=True)
6
  elif choice == "long":
7
- return gr.Radio.update(lines=8, visible=True)
8
  else:
9
- return gr.Radio.update(visible=False)
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: