Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from transformers import pipeline
|
|
3 |
|
4 |
# Summarization
|
5 |
def summarization(text):
|
6 |
-
text_model = pipeline("
|
7 |
summary = text_model(text, max_length=100, temperature=1.0)[0]["generated_text"]
|
8 |
return summary
|
9 |
|
|
|
3 |
|
4 |
# Summarization
|
5 |
def summarization(text):
|
6 |
+
text_model = pipeline("summarization", model="philschmid/bart-large-cnn-samsum")
|
7 |
summary = text_model(text, max_length=100, temperature=1.0)[0]["generated_text"]
|
8 |
return summary
|
9 |
|