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 files

Update 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>

Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -1,6 +1,6 @@
1
  """
2
  Translation interface using the MADLAD-400 3B model.
3
- Translates English text to evaluated languages from the MADLAD-400 paper.
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 183 languages using Google's MADLAD-400 3B model. "
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.", "Japanese"],
109
- ["Thank you very much.", "Swahili"],
110
- ["Where is the train station?", "Hindi"],
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
  )