abdulmatinomotoso commited on
Commit
66677e5
·
1 Parent(s): 1073c6d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,8 +11,8 @@ labels = ['Politics', 'Tech', 'Entertainment', 'Business', 'World', 'Sport']
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=True)
15
- tokenizer = AutoTokenizer.from_pretrained(model_name, use_auth_token=True)
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, 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):