Update app.py
Browse files
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 |
return 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 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)
|