Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, pipeline
|
|
4 |
tokenizer = AutoTokenizer.from_pretrained("human-centered-summarization/financial-summarization-pegasus")
|
5 |
|
6 |
model = AutoModelForSeq2SeqLM.from_pretrained("human-centered-summarization/financial-summarization-pegasus")
|
7 |
-
pipe = pipeline(task="
|
8 |
model=model,
|
9 |
tokenizer=tokenizer,)
|
10 |
|
|
|
4 |
tokenizer = AutoTokenizer.from_pretrained("human-centered-summarization/financial-summarization-pegasus")
|
5 |
|
6 |
model = AutoModelForSeq2SeqLM.from_pretrained("human-centered-summarization/financial-summarization-pegasus")
|
7 |
+
pipe = pipeline(task="summarization",
|
8 |
model=model,
|
9 |
tokenizer=tokenizer,)
|
10 |
|