Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|