Wootang01 commited on
Commit
f129196
·
1 Parent(s): 23f48f8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -12
app.py CHANGED
@@ -1,14 +1,3 @@
1
  import gradio as gr
2
- from gradio.mix import Textbox
3
 
4
- api = gr.Interface.load("huggingface/EleutherAI/gpt-neo-1.3B")
5
-
6
- def ai_text(text):
7
- return text [:-50] + api(text[-50:])
8
-
9
- with gr.Blocks() as demo:
10
- textbox = gr.Textbox(lines=5)
11
- btn = gr.Button("Submit")
12
- btn.click(ai_text, textbox, textbox)
13
-
14
- demo.launch()
 
1
  import gradio as gr
 
2
 
3
+ gr.Interface.load("huggingface/EleutherAI/gpt-neo-1.3B", inputs=gr.Textbox(lines=5), outputs="text").launch()