π Usage
You can use this model directly with the π€ Transformers pipeline:
from transformers import pipeline
# Load the fine-tuned model from Hugging Face
model_id = "dilexsan/flan_t5_youtube_comments_suggestion"
generator = pipeline("text2text-generation", model=model_id)
comment = "Audio was clear and easy to understand."
input_text = "generate suggestion: " + comment
result = generator(input_text, max_length=128, num_beams=4, early_stopping=True)
print("Input Comment:", comment)
print("Generated Suggestion:", result[0]['generated_text'])
- Downloads last month
- 5