Spaces:
Running
on
Zero
Running
on
Zero
Add copy suggestions
#1
by
davanstrien
HF staff
- opened
app.py
CHANGED
@@ -67,14 +67,10 @@ def translate(text: str, src_lang: str, tgt_lang: str):
|
|
67 |
|
68 |
|
69 |
description = """
|
70 |
-
|
71 |
-
This demo application allows you to use the NLLB model to translate text between a source and target language.
|
72 |
|
73 |
-
|
74 |
|
75 |
-
- Whilst the model supports 200 languages, the quality of translations may vary between languages.
|
76 |
-
- "Low Resource" languages (languages which are less present on the internet and have a lower amount of investment) may have lower quality translations.
|
77 |
-
- The demo uses a sliding window approach to handle longer texts.
|
78 |
"""
|
79 |
|
80 |
instructions = """
|
@@ -83,7 +79,7 @@ instructions = """
|
|
83 |
3. Click the 'Translate text' button.
|
84 |
"""
|
85 |
with gr.Blocks() as demo:
|
86 |
-
gr.Markdown("#
|
87 |
gr.Markdown(description)
|
88 |
gr.Markdown("## Instructions")
|
89 |
gr.Markdown(instructions)
|
|
|
67 |
|
68 |
|
69 |
description = """
|
70 |
+
UNESCO, Meta, and Hugging Face have come together to create an accessible, high-quality translation experience in 200 languages.
|
|
|
71 |
|
72 |
+
This is made possible through an open approach to AI innovation using Meta’s open-sourced No Language Left Behind (NLLB) AI model, hosted on Hugging Face Spaces.
|
73 |
|
|
|
|
|
|
|
74 |
"""
|
75 |
|
76 |
instructions = """
|
|
|
79 |
3. Click the 'Translate text' button.
|
80 |
"""
|
81 |
with gr.Blocks() as demo:
|
82 |
+
gr.Markdown("# UNESCO Language Translator, powered by Meta and Hugging Face")
|
83 |
gr.Markdown(description)
|
84 |
gr.Markdown("## Instructions")
|
85 |
gr.Markdown(instructions)
|