Downloads · 30 days
8
17% of all-time downloads
dilexsan/flan_t5_youtube_comments_suggestion
flan_t5_youtube_comments_suggestion is a summarization model from dilexsan. Use it when you need a shorter version of a longer text. The card lists the license as mit.
You can use this model directly with the 🤗 Transformers pipeline:
Downloads · 30 days
8
17% of all-time downloads
All-time downloads
46
Public
Parameters
248M
991 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors990 MB · 100%
From the Hugging Face model README
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'])