Downloads · 30 days
20
4% of all-time downloads
sarahai/your-inspiration
your-inspiration is a text generation model from sarahai. 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.
This model is fine-tuned on a dataset of inspirational quotes to generate new, motivational quotes based on a given seed text. It is based on the GPT-2 architecture.
Downloads · 30 days
20
4% of all-time downloads
All-time downloads
462
Public
Parameters
124M
1.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.pt996 MB · 67%
From the Hugging Face model README
This model is fine-tuned on a dataset of inspirational quotes to generate new, motivational quotes based on a given seed text. It is based on the GPT-2 architecture.
This model can generate a quote based on a seed text provided by the user. The model expects a string of text as input and will return a string containing the inspirational quote.
Here is how to use the model in Python:
from transformers import pipeline
generator = pipeline('text-generation', model='sarahai/your-inspiration')
seed_text = "Life is"
generated_quotes = generator(seed_text, max_length=50, num_return_sequences=1)
for quote in generated_quotes:
print(quote['generated_text'])