kadirnar commited on
Commit
2b457ce
1 Parent(s): d681378

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -12
app.py CHANGED
@@ -43,7 +43,6 @@ def translate_to_english(prompt, lang_model_id, base_lang):
43
 
44
  return output_text[0]
45
 
46
-
47
  def biogpt_text(
48
  prompt: str,
49
  biogpt_model_id: str,
@@ -69,7 +68,6 @@ def biogpt_text(
69
 
70
  return en_prompt, output, output_text
71
 
72
-
73
  def biogpt_audio(
74
  input_audio: str,
75
  biogpt_model_id: str,
@@ -94,20 +92,12 @@ def biogpt_audio(
94
 
95
  return en_prompt, output, output_text
96
 
97
- examples = [
98
- ["COVID-19 is", biogpt_model_list[0], lang_model_list[1], "English"]
99
- ]
100
 
101
  app = gr.Blocks()
102
  with app:
103
  gr.Markdown("# **<h3 align='center'>Whisper + M2M100 + BioGPT: Generative Pre-trained Transformer for Biomedical Text Generation and Mining<h3>**")
104
- gr.Markdown(
105
- """
106
- <h5 style='text-align: center'>
107
- Follow me for more!
108
- <br> <a href='https://twitter.com/kadirnar_ai' target='_blank'>twitter</a> | <a href='https://github.com/kadirnar' target='_blank'>github</a> | <a href='https://www.linkedin.com/in/kadir-nar/' target='_blank'>linkedin</a> |
109
- </h5>
110
- """
111
  )
112
  with gr.Row():
113
  with gr.Column():
 
43
 
44
  return output_text[0]
45
 
 
46
  def biogpt_text(
47
  prompt: str,
48
  biogpt_model_id: str,
 
68
 
69
  return en_prompt, output, output_text
70
 
 
71
  def biogpt_audio(
72
  input_audio: str,
73
  biogpt_model_id: str,
 
92
 
93
  return en_prompt, output, output_text
94
 
95
+ examples = [["COVID-19 is", biogpt_model_list[0], lang_model_list[1], "English"]]
 
 
96
 
97
  app = gr.Blocks()
98
  with app:
99
  gr.Markdown("# **<h3 align='center'>Whisper + M2M100 + BioGPT: Generative Pre-trained Transformer for Biomedical Text Generation and Mining<h3>**")
100
+ gr.Markdown("<h5><a href='https://twitter.com/kadirnar_ai' target='_blank'>twitter</a> | <a href='https://github.com/kadirnar' target='_blank'>github</a> | <a href='https://www.linkedin.com/in/kadir-nar/' target='_blank'>linkedin</a> | </h5>"
 
 
 
 
 
 
101
  )
102
  with gr.Row():
103
  with gr.Column():