mssab commited on
Commit
b56f45b
·
verified ·
1 Parent(s): c078293

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,7 +7,7 @@ from transformers import AutoTokenizer, AutoModelForSequenceClassification
7
  import torch
8
 
9
  #Defining the labels of the models
10
- labels = ["business", "science","health", "world", "sport", "politics", "entertainment", "tech"]
11
 
12
  #Defining the models and tokenuzer
13
  model_name = "valurank/finetuned-distilbert-news-article-categorization"
@@ -64,4 +64,4 @@ demo = gr.Interface(get_category, inputs=gr.Textbox(label="Drop your articles he
64
 
65
  #Launching the gradio app
66
  if __name__ == "__main__":
67
- demo.launch(debug=True)
 
7
  import torch
8
 
9
  #Defining the labels of the models
10
+ labels = [ "business", "science", "health", "world", "sport", "politics", "entertainment", "tech", "education", "environment", "travel", "lifestyle", "crime", "opinion", "weather", "culture", "art", "food", "automotive", "finance", "international" ]
11
 
12
  #Defining the models and tokenuzer
13
  model_name = "valurank/finetuned-distilbert-news-article-categorization"
 
64
 
65
  #Launching the gradio app
66
  if __name__ == "__main__":
67
+ demo.launch(debug=True)