kadirnar commited on
Commit
8cbe3ae
·
1 Parent(s): 62fedd1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -17,7 +17,7 @@ def translate_to_english(text, base_lang):
17
  return text
18
  else:
19
  base_lang = lang_ids[base_lang]
20
- new_text = translate("facebook/m2m100_418M", text, base_lang, "English")
21
  return new_text
22
 
23
 
@@ -61,8 +61,8 @@ outputs = [
61
  ]
62
 
63
  examples = [
64
- ["COVID-19 is", "microsoft/biogpt", 25, 5, "en"],
65
- ["Kanser", "microsoft/biogpt", 25, 5, "tr"]
66
  ]
67
 
68
  title = " BioGPT: Generative Pre-trained Transformer for Biomedical Text Generation and Mining"
 
17
  return text
18
  else:
19
  base_lang = lang_ids[base_lang]
20
+ new_text = translate("facebook/m2m100_418M", text, base_lang, "en")
21
  return new_text
22
 
23
 
 
61
  ]
62
 
63
  examples = [
64
+ ["COVID-19 is", "microsoft/biogpt", 25, 5, "English"],
65
+ ["Kanser", "microsoft/biogpt", 25, 5, "Turkish"]
66
  ]
67
 
68
  title = " BioGPT: Generative Pre-trained Transformer for Biomedical Text Generation and Mining"