Summarization
Transformers
PyTorch
Core ML
ONNX
Safetensors
English
t5
text2text-generation
text-generation-inference
Instructions to use Falconsai/text_summarization with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Falconsai/text_summarization with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "summarization" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("summarization", model="Falconsai/text_summarization")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Falconsai/text_summarization") model = AutoModelForSeq2SeqLM.from_pretrained("Falconsai/text_summarization") - Notebooks
- Google Colab
- Kaggle
Update README.md (#6)
Browse files- Update README.md (598632457fe94668950dcb1a275ad5680b1734e6)
Co-authored-by: Vlastimil Vodicka <VlastimilLeadspicker@users.noreply.huggingface.co>
README.md
CHANGED
|
@@ -76,7 +76,7 @@ Hugging Face's journey is far from over. As of my last knowledge update in Septe
|
|
| 76 |
Conclusion
|
| 77 |
Hugging Face's story is one of transformation, collaboration, and empowerment. Their open-source contributions have reshaped the NLP landscape and democratized access to AI. As they continue to push the boundaries of AI research, we can expect Hugging Face to remain at the forefront of innovation, contributing to a more inclusive and ethical AI future. Their journey reminds us that the power of open-source collaboration can lead to groundbreaking advancements in technology and bring AI within the reach of many.
|
| 78 |
"""
|
| 79 |
-
print(summarizer(ARTICLE, max_length=
|
| 80 |
>>> [{'summary_text': 'Hugging Face has emerged as a prominent and innovative force in NLP . From its inception to its role in democratizing AI, the company has left an indelible mark on the industry . The name "Hugging Face" was chosen to reflect the company\'s mission of making AI models more accessible and friendly to humans .'}]
|
| 81 |
```
|
| 82 |
|
|
|
|
| 76 |
Conclusion
|
| 77 |
Hugging Face's story is one of transformation, collaboration, and empowerment. Their open-source contributions have reshaped the NLP landscape and democratized access to AI. As they continue to push the boundaries of AI research, we can expect Hugging Face to remain at the forefront of innovation, contributing to a more inclusive and ethical AI future. Their journey reminds us that the power of open-source collaboration can lead to groundbreaking advancements in technology and bring AI within the reach of many.
|
| 78 |
"""
|
| 79 |
+
print(summarizer(ARTICLE, max_length=1000, min_length=30, do_sample=False))
|
| 80 |
>>> [{'summary_text': 'Hugging Face has emerged as a prominent and innovative force in NLP . From its inception to its role in democratizing AI, the company has left an indelible mark on the industry . The name "Hugging Face" was chosen to reflect the company\'s mission of making AI models more accessible and friendly to humans .'}]
|
| 81 |
```
|
| 82 |
|