Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -5,13 +5,9 @@ from transformers import MarianMTModel, MarianTokenizer
|
|
5 |
LANGUAGE_MODELS = {
|
6 |
'Afrikaans': ('af', 'Helsinki-NLP/opus-mt-en-af'),
|
7 |
'Albanian': ('sq', 'Helsinki-NLP/opus-mt-en-sq'),
|
8 |
-
'Amharic': ('am', 'Helsinki-NLP/opus-mt-en-am'),
|
9 |
'Arabic': ('ar', 'Helsinki-NLP/opus-mt-en-ar'),
|
10 |
'Armenian': ('hy', 'Helsinki-NLP/opus-mt-en-hy'),
|
11 |
-
'Bengali': ('bn', 'Helsinki-NLP/opus-mt-en-bn'),
|
12 |
-
'Bosnian': ('bs', 'Helsinki-NLP/opus-mt-en-bs'),
|
13 |
'Catalan': ('ca', 'Helsinki-NLP/opus-mt-en-ca'),
|
14 |
-
'Croatian': ('hr', 'Helsinki-NLP/opus-mt-en-hr'),
|
15 |
'Czech': ('cs', 'Helsinki-NLP/opus-mt-en-cs'),
|
16 |
'Danish': ('da', 'Helsinki-NLP/opus-mt-en-da'),
|
17 |
'Dutch': ('nl', 'Helsinki-NLP/opus-mt-en-nl'),
|
|
|
5 |
LANGUAGE_MODELS = {
|
6 |
'Afrikaans': ('af', 'Helsinki-NLP/opus-mt-en-af'),
|
7 |
'Albanian': ('sq', 'Helsinki-NLP/opus-mt-en-sq'),
|
|
|
8 |
'Arabic': ('ar', 'Helsinki-NLP/opus-mt-en-ar'),
|
9 |
'Armenian': ('hy', 'Helsinki-NLP/opus-mt-en-hy'),
|
|
|
|
|
10 |
'Catalan': ('ca', 'Helsinki-NLP/opus-mt-en-ca'),
|
|
|
11 |
'Czech': ('cs', 'Helsinki-NLP/opus-mt-en-cs'),
|
12 |
'Danish': ('da', 'Helsinki-NLP/opus-mt-en-da'),
|
13 |
'Dutch': ('nl', 'Helsinki-NLP/opus-mt-en-nl'),
|