Downloads · 30 days
6
7% of all-time downloads
KameronB/sitcc-t5-base-v3.0
sitcc-t5-base-v3.0 is a machine learning model from KameronB. 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
6
7% of all-time downloads
All-time downloads
85
Public
Parameters
248M
2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors990 MB · 100%
From the Hugging Face model README
from transformers import T5Tokenizer, T5ForConditionalGeneration
model_path = "KameronB/sitcc-t5-base-v3.0"
# Load the model
model = T5ForConditionalGeneration.from_pretrained(model_path, use_safetensors=True)
# Load the tokenizer (if applicable)
tokenizer = T5Tokenizer.from_pretrained(model_path)
def summarize_ticket(ticket_text):
# Tokenize the input text
input_ids = tokenizer.encode("Summarize: " + ticket_text, return_tensors="pt")
# Generate the summary
summary_ids = model.generate(input_ids, min_length=10, max_length=100)
# Decode and return the summary
summary = tokenizer.decode(summary_ids[0], skip_special_tokens=True)
return summary