arpm01 commited on
Commit
e4f9173
·
1 Parent(s): 9cb9795

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, pipeline
9
  #model=model,
10
  #tokenizer=tokenizer,)
11
 
12
- pipe = pipeline(task="summarization", model = "human-centered-summarization/financial-summarization-pegasus")
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()