Ashrafb commited on
Commit
1c2c6e4
1 Parent(s): 4dcb861

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -6
app.py CHANGED
@@ -12,12 +12,6 @@ Slovenian (sl), Somali (so), Albanian (sq), Serbian (sr), Swati (ss), Sundanese
12
  Turkish (tr), Ukrainian (uk), Urdu (ur), Uzbek (uz), Vietnamese (vi), Wolof (wo), Xhosa (xh), Yiddish (yi), Yoruba (yo), Chinese (zh), Zulu (zu)"""
13
  lang_list = [lang.strip() for lang in langs.split(',')]
14
 
15
- model = M2M100ForConditionalGeneration.from_pretrained("alirezamsh/small100")
16
- tokenizer = SMALL100Tokenizer.from_pretrained("alirezamsh/small100")
17
-
18
- description = """This is an official 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). Currently running on 2 vCPU - 16GB RAM."""
21
 
22
  def small100_tr(lang, text):
23
 
 
12
  Turkish (tr), Ukrainian (uk), Urdu (ur), Uzbek (uz), Vietnamese (vi), Wolof (wo), Xhosa (xh), Yiddish (yi), Yoruba (yo), Chinese (zh), Zulu (zu)"""
13
  lang_list = [lang.strip() for lang in langs.split(',')]
14
 
 
 
 
 
 
 
15
 
16
  def small100_tr(lang, text):
17