Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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="
|
| 50 |
-
gr.components.Dropdown(label="Target Language", choices=list(NLLB_LANG_MAPPING.keys()), value="
|
| 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")
|