Spaces:
Sleeping
Sleeping
abdulmatinomotoso
commited on
Commit
·
66677e5
1
Parent(s):
1073c6d
Update app.py
Browse files
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=
|
15 |
-
tokenizer = AutoTokenizer.from_pretrained(model_name, use_auth_token=
|
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):
|