Akbartus commited on
Commit
c00df11
·
1 Parent(s): 04be035

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -7,12 +7,13 @@ from transformers import pipeline
7
 
8
  models = {'en': 'Narsil/deberta-large-mnli-zero-cls', # English
9
  'ru': 'DeepPavlov/xlm-roberta-large-en-ru-mnli' # Russian
10
- 'uz': 'coppercitylabs/uzbek-news-category-classifier' #Uzbek
 
11
 
12
 
13
  hypothesis_templates = {'en': 'This example is {}.', # English
14
  'ru': 'Этот пример {}.' # Russian
15
- 'uz': 'Бу мисол {}.' # Uzbek
16
 
17
 
18
  classifiers = {'en': pipeline("zero-shot-classification", hypothesis_template=hypothesis_templates['en'],
 
7
 
8
  models = {'en': 'Narsil/deberta-large-mnli-zero-cls', # English
9
  'ru': 'DeepPavlov/xlm-roberta-large-en-ru-mnli' # Russian
10
+ 'uz': 'coppercitylabs/uzbek-news-category-classifier'
11
+ } #Uzbek
12
 
13
 
14
  hypothesis_templates = {'en': 'This example is {}.', # English
15
  'ru': 'Этот пример {}.' # Russian
16
+ 'uz': 'Бу мисол {}.' # Uzbek}
17
 
18
 
19
  classifiers = {'en': pipeline("zero-shot-classification", hypothesis_template=hypothesis_templates['en'],