awacke1 commited on
Commit
79a896b
·
1 Parent(s): 5d205bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,9 +5,9 @@ api = gr.Interface.load("models/bigscience/bloom")
5
 
6
  def change_textbox(choice, textin):
7
  if choice == "short":
8
- #return gr.Textbox.update(lines=2, visible=True)
9
  elif choice == "long":
10
- textin[:-50] + api(textin[-50:])
11
  #return gr.Textbox.update(lines=8, visible=True)
12
  else:
13
  return gr.Textbox.update(visible=False)
 
5
 
6
  def change_textbox(choice, textin):
7
  if choice == "short":
8
+ return gr.Textbox.update(lines=2, visible=True)
9
  elif choice == "long":
10
+ return textin[:-50] + api(textin[-50:])
11
  #return gr.Textbox.update(lines=8, visible=True)
12
  else:
13
  return gr.Textbox.update(visible=False)