Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, pipeline
|
|
9 |
#model=model,
|
10 |
#tokenizer=tokenizer,)
|
11 |
|
12 |
-
pipe = pipeline(task="
|
13 |
|
14 |
with open('text1.txt') as f:
|
15 |
text1 = f.read()
|
|
|
9 |
#model=model,
|
10 |
#tokenizer=tokenizer,)
|
11 |
|
12 |
+
pipe = pipeline(task="text2text-generation", model = "human-centered-summarization/financial-summarization-pegasus")
|
13 |
|
14 |
with open('text1.txt') as f:
|
15 |
text1 = f.read()
|