kadirnar commited on
Commit
6499eee
·
1 Parent(s): b6ad8fb

update title

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -51,7 +51,10 @@ def biogpt(
51
  if base_lang == "English":
52
  base_lang_output = output_text
53
 
54
- base_lang_output = translate(lang_model_id, output_text, "en", lang_ids[base_lang])[0]
 
 
 
55
 
56
  return en_prompt, output_text, base_lang_output
57
 
@@ -76,7 +79,8 @@ examples = [
76
  ["Kanser", "microsoft/biogpt", 25, 2, "Turkish", "facebook/m2m100_1.2B"]
77
  ]
78
 
79
- title = " BioGPT: Generative Pre-trained Transformer for Biomedical Text Generation and Mining"
 
80
  description = "BioGPT is a domain-specific generative pre-trained Transformer language model for biomedical text generation and mining. BioGPT follows the Transformer language model backbone, and is pre-trained on 15M PubMed abstracts from scratch. Github: github.com/microsoft/BioGPT Paper: https://arxiv.org/abs/2210.10341"
81
 
82
  demo_app = gr.Interface(
 
51
  if base_lang == "English":
52
  base_lang_output = output_text
53
 
54
+ else:
55
+ base_lang_output = translate(lang_model_id, output_text, "en", lang_ids[base_lang])[0]
56
+ for i in range(num_return_sequences):
57
+ base_lang_output += f'{output_dict[str(i+1)]}\n\n'
58
 
59
  return en_prompt, output_text, base_lang_output
60
 
 
79
  ["Kanser", "microsoft/biogpt", 25, 2, "Turkish", "facebook/m2m100_1.2B"]
80
  ]
81
 
82
+ title = "M2M100 + BioGPT: Generative Pre-trained Transformer for Biomedical Text Generation and Mining"
83
+
84
  description = "BioGPT is a domain-specific generative pre-trained Transformer language model for biomedical text generation and mining. BioGPT follows the Transformer language model backbone, and is pre-trained on 15M PubMed abstracts from scratch. Github: github.com/microsoft/BioGPT Paper: https://arxiv.org/abs/2210.10341"
85
 
86
  demo_app = gr.Interface(