Jour commited on
Commit
78b0d0c
1 Parent(s): 1e80a8d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,7 +9,7 @@ LANGUAGES = ['Akan', 'Arabic', ' Assamese', 'Bambara', 'Bengali', 'Catalan', 'En
9
  'Kirundi', 'Kinyarwanda', 'Shona', 'Sotho', 'Swahili', 'Tamil', 'Telugu', 'Tswana', 'Tsonga', 'Twi', 'Urdu', 'Viêt Namese', 'Wolof', 'Xhosa',
10
  'Yoruba', 'Chinese', 'Zulu']
11
 
12
- API_URL = "https://api-inference.huggingface.co/models/bigscience/mt0-xxl"
13
 
14
 
15
  def translate(output, text):
@@ -38,7 +38,7 @@ demo = gr.Blocks()
38
 
39
  with demo:
40
  gr.Markdown("<h1><center>Translation with Bloom</center></h1>")
41
- gr.Markdown("<center>Translation in many language with mt0-xxl</center>")
42
 
43
  with gr.Row():
44
  output_lang = gr.Dropdown(LANGUAGES, value='French', label='Select output language')
 
9
  'Kirundi', 'Kinyarwanda', 'Shona', 'Sotho', 'Swahili', 'Tamil', 'Telugu', 'Tswana', 'Tsonga', 'Twi', 'Urdu', 'Viêt Namese', 'Wolof', 'Xhosa',
10
  'Yoruba', 'Chinese', 'Zulu']
11
 
12
+ API_URL = "https://api-inference.huggingface.co/models/bigscience/mt0-xxl-mt"
13
 
14
 
15
  def translate(output, text):
 
38
 
39
  with demo:
40
  gr.Markdown("<h1><center>Translation with Bloom</center></h1>")
41
+ gr.Markdown("<center>Translation in many language with mt0-xxl-mt</center>")
42
 
43
  with gr.Row():
44
  output_lang = gr.Dropdown(LANGUAGES, value='French', label='Select output language')