Downloads · 30 days
231
0% of all-time downloads
pranavpsv/gpt2-genre-story-generator
gpt2-genre-story-generator is a text generation model from pranavpsv. Use it when you need the model to write or continue text. It is set up for transformers.
GPT2 fine-tuned on genre-based story generation.
Downloads · 30 days
231
0% of all-time downloads
All-time downloads
130K
Public
Repo size
1.5 GB
Likes
45
Public
Click a slice to open those files.
.bin510 MB · 51%
From the Hugging Face model README
GPT2 fine-tuned on genre-based story generation.
Used to generate stories based on user inputted genre and starting prompts.
superhero, action, drama, horror, thriller, sci_fi
<BOS> <genre> Some optional text...
Example: <BOS> <sci_fi> After discovering time travel,
# Example of usage
from transformers import pipeline
story_gen = pipeline("text-generation", "pranavpsv/gpt2-genre-story-generator")
print(story_gen("<BOS> <superhero> Batman"))
Initialized with pre-trained weights of "gpt2" checkpoint. Fine-tuned the model on stories of various genres.