Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
reshav1
/
test
like
0
Sleeping
App
Files
Files
Community
1
Fetching metadata from the HF Docker repository...
68ac2cc
test
/
app.py
reshav1
Update app.py
68ac2cc
verified
about 1 year ago
raw
Copy download link
history
blame
170 Bytes
import
transformers
from
transformers
import
GPT2LMHeadModel
model_id =
"gpt2"
model = GPT2LMHeadModel.from_pretrained(model_id)
text =
"Hello"
outputs = model(text)