Downloads · 30 days
59
70% of all-time downloads
onnx-community/Text-Summarizer-t5-small-ONNX
Text-Summarizer-t5-small-ONNX is a summarization model from onnx-community. Use it when you need a shorter version of a longer text. It is set up for transformers.js.
This is an ONNX version of UX4567/Text-Summarizer-t5-small. It was automatically converted and uploaded using this Hugging Face Space.
Downloads · 30 days
59
70% of all-time downloads
All-time downloads
84
Public
Repo size
1.7 GB
Likes
2
Public
Click a slice to open those files.
.onnx2.1 GB · 100%
From the Hugging Face model README
This is an ONNX version of UX4567/Text-Summarizer-t5-small. It was automatically converted and uploaded using this Hugging Face Space.
See the pipeline documentation for summarization: https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.SummarizationPipeline
This model is a fine-tuned version of T5 designed for abstractive text summarization. It condenses long articles, documents, or paragraphs into short, accurate, and context-aware summaries.
You can load and test the model using the Hugging Face transformers pipeline or direct model classes:
from transformers import pipeline
summarizer = pipeline("text-generation", model="UX4567/Text-Summarizer-t5-small")
text = """
Artificial Intelligence (AI) is transforming industries across the globe. From healthcare to finance,
machine learning models are enabling automation, improving efficiency, and driving innovation.
As AI technology continues to evolve, ethical considerations and proper implementation become
critical for sustainable integration.
"""
summary = summarizer(text, max_length=60, min_length=25, do_sample=False)
print(summary[0]['summary_text'])