Downloads · 30 days
0
SeoTae/t5-small-custom
t5-small-custom is a machine learning model from SeoTae. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
0
Access
Public
Updated Sep 20, 2024
Repo size
—
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 58%
From the Hugging Face model README
This model is a t5-small for studing Text Summarization.
The model was trained on the cnn_dailymail dataset.
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("t5-small")
model = AutoModelForSequenceClassification.from_pretrained("t5-small")
input_text = "The movie was fantastic with a gripping storyline!"
inputs = tokenizer.encode(input_text, return_tensors="pt")
outputs = model(inputs)
print(outputs.logits)
The model may generate biased or inappropriate content due to the nature of the training data. It is recommended to use the model with caution and apply necessary filters.