Spaces:
Running
Running
Daryl Lim Claude Opus 4.6 commited on
Commit ·
67a163c
1
Parent(s): 3cba8de
fix: update app UI and examples for Tier 1 languages
Browse filesUpdate docstring, heading, and example languages to reflect the 22
production-ready language set. Replace removed languages (Japanese,
Swahili, Hindi) with Tier 1 alternatives (Spanish, German, Portuguese).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
app.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
"""
|
| 2 |
Translation interface using the MADLAD-400 3B model.
|
| 3 |
-
Translates English text to
|
| 4 |
"""
|
| 5 |
|
| 6 |
import warnings
|
|
@@ -71,7 +71,7 @@ def _build_demo() -> gr.Blocks:
|
|
| 71 |
with gr.Blocks(title="MADLAD-400 Translation") as demo:
|
| 72 |
gr.Markdown(
|
| 73 |
"# MADLAD-400 Translation\n"
|
| 74 |
-
"Translate English into
|
| 75 |
"[Paper](https://arxiv.org/pdf/2309.04662)"
|
| 76 |
)
|
| 77 |
|
|
@@ -105,9 +105,9 @@ def _build_demo() -> gr.Blocks:
|
|
| 105 |
gr.Examples(
|
| 106 |
examples=[
|
| 107 |
["Hello, how are you today?", "French"],
|
| 108 |
-
["The weather is beautiful.", "
|
| 109 |
-
["Thank you very much.", "
|
| 110 |
-
["Where is the train station?", "
|
| 111 |
],
|
| 112 |
inputs=[input_text, target_language],
|
| 113 |
)
|
|
|
|
| 1 |
"""
|
| 2 |
Translation interface using the MADLAD-400 3B model.
|
| 3 |
+
Translates English text to 22 production-ready languages from the MADLAD-400 paper.
|
| 4 |
"""
|
| 5 |
|
| 6 |
import warnings
|
|
|
|
| 71 |
with gr.Blocks(title="MADLAD-400 Translation") as demo:
|
| 72 |
gr.Markdown(
|
| 73 |
"# MADLAD-400 Translation\n"
|
| 74 |
+
"Translate English into 22 production-ready languages using Google's MADLAD-400 3B model. "
|
| 75 |
"[Paper](https://arxiv.org/pdf/2309.04662)"
|
| 76 |
)
|
| 77 |
|
|
|
|
| 105 |
gr.Examples(
|
| 106 |
examples=[
|
| 107 |
["Hello, how are you today?", "French"],
|
| 108 |
+
["The weather is beautiful.", "Spanish"],
|
| 109 |
+
["Thank you very much.", "German"],
|
| 110 |
+
["Where is the train station?", "Portuguese"],
|
| 111 |
],
|
| 112 |
inputs=[input_text, target_language],
|
| 113 |
)
|