File size: 3,567 Bytes
43d7d48
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
"""
πŸ—£οΈ Translator - Translate text from one language to another.

MODELS list all available models.

Author:
    - @ChainYo
"""

MODELS = {
    "πŸ‡ΊπŸ‡Έ English->πŸ‡ΊπŸ‡Έ English": [0,],
    "πŸ‡ΊπŸ‡Έ English->πŸ‡«πŸ‡· French": ["Helsinki-NLP/opus-mt-en-fr", "https://huggingface.co/Helsinki-NLP/opus-mt-en-fr"],
    "πŸ‡ΊπŸ‡Έ English->πŸ‡©πŸ‡ͺ German": ["Helsinki-NLP/opus-mt-en-de", "https://huggingface.co/Helsinki-NLP/opus-mt-en-de"],
    "πŸ‡ΊπŸ‡Έ English->πŸ‡ͺπŸ‡Έ Spanish": ["Helsinki-NLP/opus-mt-en-es", "https://huggingface.co/Helsinki-NLP/opus-mt-en-es"],
    "πŸ‡ΊπŸ‡Έ English->πŸ‡·πŸ‡Ί Russian": ["Helsinki-NLP/opus-mt-en-ru", "https://huggingface.co/Helsinki-NLP/opus-mt-en-ru"],
    "πŸ‡ΊπŸ‡Έ English->πŸ‡¨πŸ‡³ Chinese": ["Helsinki-NLP/opus-mt-en-zh", "https://huggingface.co/Helsinki-NLP/opus-mt-en-zh"],
    "πŸ‡«πŸ‡· French->πŸ‡«πŸ‡· French": [0, None],
    "πŸ‡«πŸ‡· French->πŸ‡ΊπŸ‡Έ English": ["Helsinki-NLP/opus-mt-fr-en", "https://huggingface.co/Helsinki-NLP/opus-mt-fr-en"],
    "πŸ‡«πŸ‡· French->πŸ‡©πŸ‡ͺ German": ["Helsinki-NLP/opus-mt-fr-de", "https://huggingface.co/Helsinki-NLP/opus-mt-fr-de"],
    "πŸ‡«πŸ‡· French->πŸ‡ͺπŸ‡Έ Spanish": ["Helsinki-NLP/opus-mt-fr-es", "https://huggingface.co/Helsinki-NLP/opus-mt-fr-es"],
    "πŸ‡«πŸ‡· French->πŸ‡·πŸ‡Ί Russian": ["Helsinki-NLP/opus-mt-fr-ru", "https://huggingface.co/Helsinki-NLP/opus-mt-fr-ru"],
    "πŸ‡«πŸ‡· French->πŸ‡¨πŸ‡³ Chinese": [None, None],
    "πŸ‡ͺπŸ‡Έ Spanish->πŸ‡ͺπŸ‡Έ Spanish": [0, None],
    "πŸ‡ͺπŸ‡Έ Spanish->πŸ‡ΊπŸ‡Έ English": ["Helsinki-NLP/opus-mt-es-en", "https://huggingface.co/Helsinki-NLP/opus-mt-es-en"],
    "πŸ‡ͺπŸ‡Έ Spanish->πŸ‡©πŸ‡ͺ German": ["Helsinki-NLP/opus-mt-es-de", "https://huggingface.co/Helsinki-NLP/opus-mt-es-de"],
    "πŸ‡ͺπŸ‡Έ Spanish->πŸ‡«πŸ‡· French": ["Helsinki-NLP/opus-mt-es-fr", "https://huggingface.co/Helsinki-NLP/opus-mt-es-fr"],
    "πŸ‡ͺπŸ‡Έ Spanish->πŸ‡·πŸ‡Ί Russian": ["Helsinki-NLP/opus-mt-es-ru", "https://huggingface.co/Helsinki-NLP/opus-mt-es-ru"],
    "πŸ‡ͺπŸ‡Έ Spanish->πŸ‡¨πŸ‡³ Chinese": ["Helsinki-NLP/opus-tatoeba-es-zh", "https://huggingface.co/Helsinki-NLP/opus-tatoeba-es-zh"],
    "πŸ‡©πŸ‡ͺ German->πŸ‡©πŸ‡ͺ German": [0, None],
    "πŸ‡©πŸ‡ͺ German->πŸ‡ΊπŸ‡Έ English": ["Helsinki-NLP/opus-mt-de-en", "https://huggingface.co/Helsinki-NLP/opus-mt-de-en"],
    "πŸ‡©πŸ‡ͺ German->πŸ‡ͺπŸ‡Έ Spanish": ["Helsinki-NLP/opus-mt-de-es", "https://huggingface.co/Helsinki-NLP/opus-mt-de-es"],
    "πŸ‡©πŸ‡ͺ German->πŸ‡«πŸ‡· French": ["Helsinki-NLP/opus-mt-de-fr", "https://huggingface.co/Helsinki-NLP/opus-mt-de-fr"],
    "πŸ‡©πŸ‡ͺ German->πŸ‡·πŸ‡Ί Russian": [None, None],
    "πŸ‡©πŸ‡ͺ German->πŸ‡¨πŸ‡³ Chinese": ["Helsinki-NLP/opus-mt-de-ZH", "https://huggingface.co/Helsinki-NLP/opus-mt-de-ZH"],
    "πŸ‡·πŸ‡Ί Russian->πŸ‡·πŸ‡Ί Russian": [0, None],
    "πŸ‡·πŸ‡Ί Russian->πŸ‡ΊπŸ‡Έ English": ["Helsinki-NLP/opus-mt-ru-en", "https://huggingface.co/Helsinki-NLP/opus-mt-ru-en"],
    "πŸ‡·πŸ‡Ί Russian->πŸ‡ͺπŸ‡Έ Spanish": ["Helsinki-NLP/opus-mt-ru-es", "https://huggingface.co/Helsinki-NLP/opus-mt-ru-es"],
    "πŸ‡·πŸ‡Ί Russian->πŸ‡«πŸ‡· French": ["Helsinki-NLP/opus-mt-ru-fr", "https://huggingface.co/Helsinki-NLP/opus-mt-ru-fr"],
    "πŸ‡·πŸ‡Ί Russian->πŸ‡©πŸ‡ͺ German": [None, None],
    
    

"πŸ‡¨πŸ‡³ Chinese->πŸ‡ΊπŸ‡Έ English": ["Helsinki-NLP/opus-mt-zh-en", "https://huggingface.co/Helsinki-NLP/opus-mt-zh-en"],
"πŸ‡¨πŸ‡³ Chinese->πŸ‡ͺπŸ‡Έ Spanish": [None, None],
"πŸ‡¨πŸ‡³ Chinese->πŸ‡«πŸ‡· French": [None, None],
"πŸ‡¨πŸ‡³ Chinese->πŸ‡¨πŸ‡³ Chinese": [0, None],
"πŸ‡¨πŸ‡³ Chinese->πŸ‡©πŸ‡ͺ German": [None, None],
}