Update app.py
Browse files
app.py
CHANGED
@@ -31,13 +31,13 @@ def translate(input, output, text):
|
|
31 |
response = requests.request("POST", API_URL, json=json_)
|
32 |
output = response.json()[0]['generated_text']
|
33 |
|
34 |
-
return output.replace(instruction, '', 1)
|
35 |
|
36 |
demo = gr.Blocks()
|
37 |
|
38 |
with demo:
|
39 |
gr.Markdown("<h1><center>Translation with Bloom</center></h1>")
|
40 |
-
gr.Markdown("<center>
|
41 |
|
42 |
with gr.Row():
|
43 |
input_lang = gr.Dropdown(LANGUAGES, value='English', label='Select input language')
|
|
|
31 |
response = requests.request("POST", API_URL, json=json_)
|
32 |
output = response.json()[0]['generated_text']
|
33 |
|
34 |
+
return output.replace(instruction, '', 1)
|
35 |
|
36 |
demo = gr.Blocks()
|
37 |
|
38 |
with demo:
|
39 |
gr.Markdown("<h1><center>Translation with Bloom</center></h1>")
|
40 |
+
gr.Markdown("<center>Translation in many language with mt0-xxl</center>")
|
41 |
|
42 |
with gr.Row():
|
43 |
input_lang = gr.Dropdown(LANGUAGES, value='English', label='Select input language')
|