Wootang01 commited on
Commit
695db2d
·
1 Parent(s): 58ab47b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ api = gr.Interface.load("huggingface/EleutherAI/gpt-neo-1.3B")
5
  def ai_text(text):
6
  return text [:-50] + api(text[-50:])
7
 
8
- with gr.Blocks() as demo():
9
  textbox = gr.Textbox(placeholder="Input text", lines=5)
10
  btn = gr.Button("Submit")
11
  btn.click(ai_text, textbox, textbox)
 
5
  def ai_text(text):
6
  return text [:-50] + api(text[-50:])
7
 
8
+ with gr.Blocks() as demo:
9
  textbox = gr.Textbox(placeholder="Input text", lines=5)
10
  btn = gr.Button("Submit")
11
  btn.click(ai_text, textbox, textbox)