Views
No views yet
config.json sets default generation parameters for high-quality output:
do_sample: True (for creative text generation)temperature: 0.7 (controls randomness)max_length: 256 (for short, complete recipes)1from transformers import pipeline
2
3generator = pipeline("text-generation", model="your_username/MinimalistRecipeTextGenerator") # Replace with actual hub path
4prompt = "Recipe for a refreshing summer salad:"
5
6output = generator(prompt, max_length=150, num_return_sequences=1, temperature=0.8)
7
8print(output[0]['generated_text'])