Downloads · 30 days
272
57% of all-time downloads
akahana/harry-potter-gpt2
harry-potter-gpt2 is a text generation model from akahana. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
272
57% of all-time downloads
All-time downloads
474
Public
Parameters
1.8M
7 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors7 MB · 100%
From the Hugging Face model README
from transformers import pipeline, set_seed
path = "akahana/harry-potter-gpt2"
generator = pipeline('text-generation',
model=path)
set_seed(42)
kalimat = "sec"
preds = generator(kalimat,
max_length=25,
num_return_sequences=1)
for data in preds:
print(data)