as-cle-bert commited on
Commit
8b1f1b3
1 Parent(s): 234c263

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -2,9 +2,10 @@ import gradio as gr
2
  from pubmedScraper import respond_to_query
3
  import time
4
 
 
5
  def respond(
6
  message,
7
- history: list[tuple[str, str]],
8
  email,
9
  max_res
10
  ):
@@ -21,8 +22,11 @@ demo = gr.ChatInterface(
21
  gr.Textbox(value="[email protected]", label="e-mail address (optional)"),
22
  gr.Slider(minimum=1, maximum=15, value=5, step=1, label="Maximum number of results"),
23
  ],
 
 
 
24
  )
25
 
26
 
27
  if __name__ == "__main__":
28
- demo.launch()
 
2
  from pubmedScraper import respond_to_query
3
  import time
4
 
5
+
6
  def respond(
7
  message,
8
+ history,
9
  email,
10
  max_res
11
  ):
 
22
  gr.Textbox(value="[email protected]", label="e-mail address (optional)"),
23
  gr.Slider(minimum=1, maximum=15, value=5, step=1, label="Maximum number of results"),
24
  ],
25
+ title="""<h1 align='center'>BioMedicalPapersBot</h1>
26
+ <h2 align='center'>Scrape PubMed faster, boost your research!🔬</h2>
27
+ <h3 align='center'>[<a href="https://github.com/AstraBert/BioMedicalPapersBot">GitHub⭐</a>] [<a href="https://github.com/sponsors/AstraBert">Funding</a>]</h3>"""
28
  )
29
 
30
 
31
  if __name__ == "__main__":
32
+ demo.launch(server_name="0.0.0.0", server_port=7860)