Spaces:
Running
Running
Add link to quantized CTranslate2 model demo
Browse files
app.py
CHANGED
|
@@ -56,9 +56,13 @@ def translate(text, source_lang="English", target_lang="Tachelhit/Central Atlas
|
|
| 56 |
return "\n".join(translations)
|
| 57 |
|
| 58 |
|
|
|
|
|
|
|
|
|
|
| 59 |
gradio_ui= gr.Interface(
|
| 60 |
fn=translate,
|
| 61 |
title="NLLB Tamazight Translation Demo",
|
|
|
|
| 62 |
inputs= [
|
| 63 |
gr.components.Textbox(label="Text", lines=4, placeholder="ⵙⵙⴽⵛⵎ ⴰⴹⵕⵉⵚ...\nEnter text to translate..."),
|
| 64 |
gr.components.Dropdown(label="Source Language", choices=list(NLLB_LANG_MAPPING.keys()), value="English"),
|
|
|
|
| 56 |
return "\n".join(translations)
|
| 57 |
|
| 58 |
|
| 59 |
+
my_description = "Try a faster demo [here](https://huggingface.co/spaces/Tamazight-NLP/Finetuned-Quantized-NLLB)!"
|
| 60 |
+
|
| 61 |
+
|
| 62 |
gradio_ui= gr.Interface(
|
| 63 |
fn=translate,
|
| 64 |
title="NLLB Tamazight Translation Demo",
|
| 65 |
+
description=my_description,
|
| 66 |
inputs= [
|
| 67 |
gr.components.Textbox(label="Text", lines=4, placeholder="ⵙⵙⴽⵛⵎ ⴰⴹⵕⵉⵚ...\nEnter text to translate..."),
|
| 68 |
gr.components.Dropdown(label="Source Language", choices=list(NLLB_LANG_MAPPING.keys()), value="English"),
|