Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,7 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
|
|
|
3 |
description_ = "Kindly input text, submit, and the computer will predict subsequent words for your text input."
|
4 |
|
5 |
-
gr.Interface.
|
|
|
1 |
import gradio as gr
|
2 |
+
from transformers import pipeline
|
3 |
|
4 |
+
pipe = pipeline('text-generation', model="EleutherAI/pythia-125m")
|
5 |
description_ = "Kindly input text, submit, and the computer will predict subsequent words for your text input."
|
6 |
|
7 |
+
gr.Interface.from_pipeline(pipe).launch()
|