Mediocreatmybest commited on
Commit
37854cd
1 Parent(s): 1700804

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -18,7 +18,7 @@ translation_task_names = {
18
  # 'Portuguese to English': 'translation_pt_to_en',
19
  # 'English to Russian': 'translation_en_to_ru',
20
  # 'Russian to English': 'translation_ru_to_en',
21
- # 'English to Chinese': 'translation_en_to_zh',
22
  # 'Chinese to English': 'translation_zh_to_en',
23
  # 'English to Japanese': 'translation_en_to_ja',
24
  # 'Japanese to English': 'translation_ja_to_en',
@@ -28,7 +28,8 @@ translation_task_names = {
28
  model_names = {
29
  'T5-Base': 't5-base',
30
  'T5-Small': 't5-small',
31
- 'T5-Large': 't5-large'
 
32
  }
33
 
34
  # Create a dictionary to store loaded models
 
18
  # 'Portuguese to English': 'translation_pt_to_en',
19
  # 'English to Russian': 'translation_en_to_ru',
20
  # 'Russian to English': 'translation_ru_to_en',
21
+ 'English to Chinese': 'translation_en_to_zh',
22
  # 'Chinese to English': 'translation_zh_to_en',
23
  # 'English to Japanese': 'translation_en_to_ja',
24
  # 'Japanese to English': 'translation_ja_to_en',
 
28
  model_names = {
29
  'T5-Base': 't5-base',
30
  'T5-Small': 't5-small',
31
+ 'T5-Large': 't5-large',
32
+ 'Opus-En-ZH': 'liam168/trans-opus-mt-en-zh'
33
  }
34
 
35
  # Create a dictionary to store loaded models