abdulmatinomotoso
commited on
Commit
·
1073c6d
1
Parent(s):
a45f613
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ import torch
|
|
8 |
#Defining the labels of the models
|
9 |
labels = ['Politics', 'Tech', 'Entertainment', 'Business', 'World', 'Sport']
|
10 |
|
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)
|
|
|
8 |
#Defining the labels of the models
|
9 |
labels = ['Politics', 'Tech', 'Entertainment', 'Business', 'World', 'Sport']
|
10 |
|
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)
|