Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
enzer1992
/
Ai-Guru
like
0
Runtime error
App
Files
Files
Community
40819c2
Ai-Guru
/
app.py
enzer1992
Update app.py
40819c2
verified
7 days ago
raw
Copy download link
history
blame
Safe
188 Bytes
from
transformers
import
TFGPT2LMHeadModel, GPT2Tokenizer
model_name =
"gpt2"
tokenizer = GPT2Tokenizer.from_pretrained(model_name)
model = TFGPT2LMHeadModel.from_pretrained(model_name)