Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Wootang01
/
text_generator_eight
like
0
Build error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
Wootang01
commited on
Dec 26, 2022
Commit
0e17d27
·
1 Parent(s):
a3ae2fd
Update app.py
Browse files
Files changed (1)
hide
show
app.py
+4
-1
app.py
CHANGED
Viewed
@@ -1,3 +1,6 @@
1
import gradio as gr
2
3
-
gr.Interface.load
(
'huggingface/gpt2'
)
.launch()
1
import gradio as gr
2
+
from transformers import pipeline
3
4
+
pipe = pipeline
(
"text-generation"
)
5
+
6
+
gr.Interface.from_pipeline(pipe).launch()