abdulmatinomotoso commited on
Commit
c85007d
·
1 Parent(s): 309b749

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,8 +11,8 @@ labels = ['entertainment', 'science', 'health', 'politics', 'sport','world', 'te
11
 
12
  #Defining the models and tokenuzer
13
  model_name = 'valurank/finetuned-distilbert-news-article-categorization'
14
- model = AutoModelForSequenceClassification.from_pretrained(model_name, use_auth_token='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')
15
- tokenizer = AutoTokenizer.from_pretrained(model_name, use_auth_token='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')
16
 
17
  #Reading in the text file
18
  def read_in_text(url):
 
11
 
12
  #Defining the models and tokenuzer
13
  model_name = 'valurank/finetuned-distilbert-news-article-categorization'
14
+ model = AutoModelForSequenceClassification.from_pretrained(model_name)
15
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
16
 
17
  #Reading in the text file
18
  def read_in_text(url):