alirezamsh commited on
Commit
5ac2176
1 Parent(s): 0bdc842

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -17,7 +17,7 @@ tokenizer = SMALL100Tokenizer.from_pretrained("alirezamsh/small100")
17
 
18
  description = """This is a demo for the paper [*SMaLL-100: Introducing Shallow Multilingual Machine Translation Model for Low-Resource Languages*](https://arxiv.org/abs/2210.11621) by Alireza Mohammadshahi, Vassilina Nikoulina, Alexandre Berard, Caroline Brun, James Henderson, Laurent Besacier
19
 
20
- In this paper, they propose a compact and shallow massively multilingual MT model, and achieve competitive result with M2M-100, while being super smaller and faster. More details are provided [here](https://huggingface.co/alirezamsh/small100)"""
21
 
22
  def small100_tr(lang, text):
23
 
@@ -31,7 +31,7 @@ def small100_tr(lang, text):
31
  examples = [["French (fr)", "Life is like a box of chocolates."]]
32
 
33
  output_text = gr.outputs.Textbox()
34
- gr.Interface(small100_tr, inputs=[gr.inputs.Dropdown(lang_list, label=" Target Language"), 'text'], outputs=output_text, title="SMaLL100: Translate Between 100 languages much faster",
35
  description=description,
36
  examples=examples
37
  ).launch()
 
17
 
18
  description = """This is a demo for the paper [*SMaLL-100: Introducing Shallow Multilingual Machine Translation Model for Low-Resource Languages*](https://arxiv.org/abs/2210.11621) by Alireza Mohammadshahi, Vassilina Nikoulina, Alexandre Berard, Caroline Brun, James Henderson, Laurent Besacier
19
 
20
+ In this paper, they propose a compact and shallow massively multilingual MT model, and achieve competitive results with M2M-100, while being super smaller and faster. More details are provided [here](https://huggingface.co/alirezamsh/small100)."""
21
 
22
  def small100_tr(lang, text):
23
 
 
31
  examples = [["French (fr)", "Life is like a box of chocolates."]]
32
 
33
  output_text = gr.outputs.Textbox()
34
+ gr.Interface(small100_tr, inputs=[gr.inputs.Dropdown(lang_list, label=" Target Language"), 'text'], outputs=output_text, title="SMaLL100: Translate much faster between 100 languages",
35
  description=description,
36
  examples=examples
37
  ).launch()