Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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, "
|
21 |
return new_text
|
22 |
|
23 |
|
@@ -61,8 +61,8 @@ outputs = [
|
|
61 |
]
|
62 |
|
63 |
examples = [
|
64 |
-
["COVID-19 is", "microsoft/biogpt", 25, 5, "
|
65 |
-
["Kanser", "microsoft/biogpt", 25, 5, "
|
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"
|