Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,14 +1,3 @@
|
|
1 |
import gradio as gr
|
2 |
-
from gradio.mix import Textbox
|
3 |
|
4 |
-
|
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()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|