awacke1 commited on
Commit
a31a32d
·
1 Parent(s): bad404b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -7,10 +7,9 @@ def change_textbox(choice, textin):
7
  if choice == "short":
8
  return textin[:-50] + api(textin[-50:])
9
  elif choice == "long":
10
- return textin[:-500] + api(textin[-500:])
11
- #return gr.Textbox.update(lines=8, visible=True)
12
  else:
13
- return gr.Textbox.update(visible=False)
14
 
15
  with gr.Blocks() as block:
16
  radio = gr.Radio(
 
7
  if choice == "short":
8
  return textin[:-50] + api(textin[-50:])
9
  elif choice == "long":
10
+ return textin[:-50] + api(textin[-50:])
 
11
  else:
12
+ return textin[:-50] + api(textin[-50:])
13
 
14
  with gr.Blocks() as block:
15
  radio = gr.Radio(