Vision-CAIR commited on
Commit
ac0f0d7
β€’
1 Parent(s): 69af5d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -522,7 +522,6 @@ chat = Chat(model, vis_processor, device=device)
522
 
523
  title = """<h1 align="center">MiniGPT-Med Demo</h1>"""
524
  description = 'Welcome to Our MiniGPT-Med Chatbot Demo!'
525
- # article = """<p><a href='https://minigpt-v2.github.io'><img src='https://img.shields.io/badge/Project-Page-Green'></a></p><p><a href='https://github.com/Vision-CAIR/MiniGPT-4/blob/main/MiniGPTv2.pdf'><img src='https://img.shields.io/badge/Paper-PDF-red'></a></p><p><a href='https://github.com/Vision-CAIR/MiniGPT-4'><img src='https://img.shields.io/badge/GitHub-Repo-blue'></a></p><p><a href='https://www.youtube.com/watch?v=atFCwV2hSY4'><img src='https://img.shields.io/badge/YouTube-Video-red'></a></p>"""
526
  article = """<p><a href='https://minigpt-med.github.io/'><img src='https://img.shields.io/badge/Project-Page-Green'></a></p>"""
527
 
528
  introduction = '''
@@ -595,7 +594,7 @@ with gr.Blocks() as demo:
595
  outputs=[upload_flag, replace_flag])
596
  with gr.Column():
597
  gr.Examples(examples=[
598
- ["Med_examples_v2/synpic50958.jpg", "[vqa] What does the small white lesions in the aorta mean?",
599
  upload_flag, replace_flag, img_list],
600
  ["Med_examples_v2/5f4e8079-8225a5d2-1b0c3c46-4394a094-f285db0e.jpg", "Please provide a detailed description of the picture", upload_flag, replace_flag, img_list],
601
  ["Med_examples_v2/1.2.276.0.7230010.3.1.4.8323329.16254.1517874395.786150.jpg", "Diagnose this image", upload_flag, replace_flag, img_list],
@@ -644,5 +643,6 @@ with gr.Blocks() as demo:
644
  )
645
 
646
  clear.click(gradio_reset, [chat_state, img_list], [chatbot, image, text_input, chat_state, img_list], queue=False)
 
647
  demo.queue().launch(share=True)
648
  # demo.launch(share=True, enable_queue=True)
 
522
 
523
  title = """<h1 align="center">MiniGPT-Med Demo</h1>"""
524
  description = 'Welcome to Our MiniGPT-Med Chatbot Demo!'
 
525
  article = """<p><a href='https://minigpt-med.github.io/'><img src='https://img.shields.io/badge/Project-Page-Green'></a></p>"""
526
 
527
  introduction = '''
 
594
  outputs=[upload_flag, replace_flag])
595
  with gr.Column():
596
  gr.Examples(examples=[
597
+ ["Med_examples_v2/synpic50958.jpg", "[vqa] What do the small white lesions in the aorta mean?",
598
  upload_flag, replace_flag, img_list],
599
  ["Med_examples_v2/5f4e8079-8225a5d2-1b0c3c46-4394a094-f285db0e.jpg", "Please provide a detailed description of the picture", upload_flag, replace_flag, img_list],
600
  ["Med_examples_v2/1.2.276.0.7230010.3.1.4.8323329.16254.1517874395.786150.jpg", "Diagnose this image", upload_flag, replace_flag, img_list],
 
643
  )
644
 
645
  clear.click(gradio_reset, [chat_state, img_list], [chatbot, image, text_input, chat_state, img_list], queue=False)
646
+
647
  demo.queue().launch(share=True)
648
  # demo.launch(share=True, enable_queue=True)