Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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/
|
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
|
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/bloomz-7b1"
|
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 bigscience/bloomz-7b1</center>")
|
42 |
|
43 |
with gr.Row():
|
44 |
output_lang = gr.Dropdown(LANGUAGES, value='French', label='Select output language')
|