Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
xnetba
/
bart
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
cce3d0b
bart
/
app.py
xnetba
Update app.py
cce3d0b
almost 2 years ago
raw
Copy download link
history
blame
203 Bytes
from
transformers
import
pipeline
generator = pipeline(
"text-generation"
, model=
"distilgpt2"
)
generator(
"In this course, we will teach you how to"
,
max_length=
30
,
num_return_sequences=
2
,
)