Spaces:
Sleeping
Sleeping
File size: 326 Bytes
9e886b1 |
1 2 3 4 5 6 7 8 9 10 |
from transformers import pipeline
def load_model():
"""
Load the Hugging Face summarization model using the Hugging Face Transformers library.
"""
# Load the pre-trained summarization pipeline from Hugging Face
summarizer = pipeline("summarization", model="facebook/bart-large-cnn")
return summarizer
|