ayymen commited on
Commit
43c46bf
·
verified ·
1 Parent(s): 8f6e3cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -46,8 +46,8 @@ gradio_ui= gr.Interface(
46
  title="NLLB Tamazight Translation Demo",
47
  inputs= [
48
  gr.components.Textbox(label="Text", lines=4, placeholder="ⵙⵙⴽⵛⵎ ⴰⴹⵕⵉⵚ...\nEnter text to translate..."),
49
- gr.components.Dropdown(label="Source Language", choices=list(NLLB_LANG_MAPPING.keys()), value="eng_Latn"),
50
- gr.components.Dropdown(label="Target Language", choices=list(NLLB_LANG_MAPPING.keys()), value="tzm_Tfng"),
51
  gr.components.Slider(8, 400, value=238, step=8, label="Max Length (in tokens)")
52
  ],
53
  outputs=gr.components.Textbox(label="Translated text")
 
46
  title="NLLB Tamazight Translation Demo",
47
  inputs= [
48
  gr.components.Textbox(label="Text", lines=4, placeholder="ⵙⵙⴽⵛⵎ ⴰⴹⵕⵉⵚ...\nEnter text to translate..."),
49
+ gr.components.Dropdown(label="Source Language", choices=list(NLLB_LANG_MAPPING.keys()), value="English"),
50
+ gr.components.Dropdown(label="Target Language", choices=list(NLLB_LANG_MAPPING.keys()), value="Standard Moroccan Tamazight"),
51
  gr.components.Slider(8, 400, value=238, step=8, label="Max Length (in tokens)")
52
  ],
53
  outputs=gr.components.Textbox(label="Translated text")