k1ngtai commited on
Commit
0a4987b
1 Parent(s): d13c06a

change defualt language to Shan

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -61,18 +61,18 @@ if __name__ == '__main__':
61
  lang_codes = list(flores_codes.keys())
62
  #inputs = [gr.inputs.Radio(['nllb-distilled-600M', 'nllb-1.3B', 'nllb-distilled-1.3B'], label='NLLB Model'),
63
  inputs = [gr.inputs.Dropdown(lang_codes, default='English', label='Source'),
64
- gr.inputs.Dropdown(lang_codes, default='Korean', label='Target'),
65
  gr.inputs.Textbox(lines=5, label="Input text"),
66
  ]
67
 
68
  outputs = gr.outputs.JSON()
69
 
70
- title = "NLLB distilled 600M demo"
71
 
72
- demo_status = "Demo is running on CPU"
73
  description = f"Details: https://github.com/facebookresearch/fairseq/tree/nllb. {demo_status}"
74
  examples = [
75
- ['English', 'Korean', 'Hi. nice to meet you']
76
  ]
77
 
78
  gr.Interface(translation,
 
61
  lang_codes = list(flores_codes.keys())
62
  #inputs = [gr.inputs.Radio(['nllb-distilled-600M', 'nllb-1.3B', 'nllb-distilled-1.3B'], label='NLLB Model'),
63
  inputs = [gr.inputs.Dropdown(lang_codes, default='English', label='Source'),
64
+ gr.inputs.Dropdown(lang_codes, default='Shan', label='Target'),
65
  gr.inputs.Textbox(lines=5, label="Input text"),
66
  ]
67
 
68
  outputs = gr.outputs.JSON()
69
 
70
+ title = "NLLB distilled 600M demo for shan"
71
 
72
+ demo_status = "Demo is running on CPU & Thanks Geonmo"
73
  description = f"Details: https://github.com/facebookresearch/fairseq/tree/nllb. {demo_status}"
74
  examples = [
75
+ ['English', 'Shan', 'Hi. nice to meet you']
76
  ]
77
 
78
  gr.Interface(translation,