abdulmatinomotoso commited on
Commit
3ffbcff
1 Parent(s): ee75fc5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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, use_auth_token='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')
40
- model_2 = AutoModelForSeq2SeqLM.from_pretrained(model_type_2, use_auth_token='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')
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):