Spaces:
Sleeping
Sleeping
abdulmatinomotoso
commited on
Commit
·
c85007d
1
Parent(s):
309b749
Update app.py
Browse files
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
|
15 |
-
tokenizer = AutoTokenizer.from_pretrained(model_name
|
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):
|