Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
stevhliu
/
gradio-pipeline-demo
like
0
Running
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
7b1f2d9
gradio-pipeline-demo
/
app.py
stevhliu
HF Staff
Update app.py
7b1f2d9
verified
about 1 year ago
raw
Copy download link
history
blame
Safe
183 Bytes
from
transformers
import
pipeline
import
gradio
as
gr
import
torch
pipeline = pipeline(
"text-generation"
, model=
"openai-community/gpt2"
)
gr.Interface.from_pipeline(pipeline).launch()