Spaces:
Runtime error
Runtime error
abdulmatinomotoso
commited on
Commit
•
3ffbcff
1
Parent(s):
ee75fc5
Update app.py
Browse files
app.py
CHANGED
@@ -36,8 +36,8 @@ from transformers import (
|
|
36 |
|
37 |
#initializing the tokenizer and the model
|
38 |
model_type_2 ="valurank/pegasus-multi_news-headline"
|
39 |
-
tokenizer_2 = AutoTokenizer.from_pretrained(model_type_2
|
40 |
-
model_2 = AutoModelForSeq2SeqLM.from_pretrained(model_type_2
|
41 |
|
42 |
#Defining a function to generate the headlines
|
43 |
def headline_generator_2(file):
|
|
|
36 |
|
37 |
#initializing the tokenizer and the model
|
38 |
model_type_2 ="valurank/pegasus-multi_news-headline"
|
39 |
+
tokenizer_2 = AutoTokenizer.from_pretrained(model_type_2)
|
40 |
+
model_2 = AutoModelForSeq2SeqLM.from_pretrained(model_type_2)
|
41 |
|
42 |
#Defining a function to generate the headlines
|
43 |
def headline_generator_2(file):
|