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.
1
2from transformers import pipeline
3
4generator = pipeline('text-generation', model='sarahai/your-inspiration')
5
6seed_text = "Life is"
7generated_quotes = generator(seed_text, max_length=50, num_return_sequences=1)
8
9for quote in generated_quotes:
10 print(quote['generated_text'])
11