Jour commited on
Commit
721f1f6
1 Parent(s): 2b5061b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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)[1:]
35
 
36
  demo = gr.Blocks()
37
 
38
  with demo:
39
  gr.Markdown("<h1><center>Translation with Bloom</center></h1>")
40
- gr.Markdown("<center>If you know how to do for that the model translate the full sentence and not with intenpestive words, make a pr!</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')