keithhon commited on
Commit
56f164d
1 Parent(s): 58ee119

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -61,8 +61,8 @@ if __name__ == '__main__':
61
  # define gradio demo
62
  lang_codes = list(flores_codes.keys())
63
  #inputs = [gr.inputs.Radio(['nllb-distilled-600M', 'nllb-1.3B', 'nllb-distilled-1.3B'], label='NLLB Model'),
64
- inputs = [gr.inputs.Dropdown(lang_codes, default='English', label='Source'),
65
- gr.inputs.Dropdown(lang_codes, default='Korean', label='Target'),
66
  gr.inputs.Textbox(lines=5, label="Input text"),
67
  ]
68
 
@@ -73,7 +73,7 @@ if __name__ == '__main__':
73
  demo_status = "Demo is running on CPU"
74
  description = f"Details: https://github.com/facebookresearch/fairseq/tree/nllb. {demo_status}"
75
  examples = [
76
- ['English', 'Korean', 'Hi. nice to meet you']
77
  ]
78
 
79
  gr.Interface(translation,
 
61
  # define gradio demo
62
  lang_codes = list(flores_codes.keys())
63
  #inputs = [gr.inputs.Radio(['nllb-distilled-600M', 'nllb-1.3B', 'nllb-distilled-1.3B'], label='NLLB Model'),
64
+ inputs = [gr.inputs.Dropdown(lang_codes, default='Chinese (Traditional)', label='Source'),
65
+ gr.inputs.Dropdown(lang_codes, default='English', label='Target'),
66
  gr.inputs.Textbox(lines=5, label="Input text"),
67
  ]
68
 
 
73
  demo_status = "Demo is running on CPU"
74
  description = f"Details: https://github.com/facebookresearch/fairseq/tree/nllb. {demo_status}"
75
  examples = [
76
+ ['Chinese (Traditional)', 'English', '你好']
77
  ]
78
 
79
  gr.Interface(translation,