zy5830850 commited on
Commit
4cc8229
1 Parent(s): 757a233
app.py CHANGED
@@ -102,7 +102,7 @@ with gr.Blocks() as demo:
102
  """)
103
  with gr.Row():
104
  with gr.Column(scale=1, min_width=300):
105
- input_image = gr.Image(type='pil', value="./images/649af982-e3af4e3a-75013d30-cdc71514-a34738fd.jpg")
106
  hl_text = gr.HighlightedText(
107
  label="Medical Report",
108
  combine_adjacent=False,
@@ -141,10 +141,10 @@ with gr.Blocks() as demo:
141
  # clear_btn = gr.Button("Clear")
142
  # run_btn = gr.Button("Run")
143
  # output = gr.Image(type="pil", label="Grounding Results", interactive=False).style(height=500)
144
- output = gr.Image(type="pil", value="./images/649af982-e3af4e3a-75013d30-cdc71514-a34738fd.jpg", label="Grounding Results", interactive=False).style(height=500)
145
  hl_text.select(get_new_result, inputs=[input_image], outputs=[input_text, output])
146
  # run_btn.click(fn=inference, inputs=[input_image, input_text], outputs=output)
147
  # clear_btn.click(fn=clear, outputs=input_text)
148
- demo.launch(share=True)
149
 
150
 
 
102
  """)
103
  with gr.Row():
104
  with gr.Column(scale=1, min_width=300):
105
+ input_image = gr.Image(type='pil', value="./images/649af982-e3af4e3a-75013d30-cdc71514-a34738fd.jpg", height=500)
106
  hl_text = gr.HighlightedText(
107
  label="Medical Report",
108
  combine_adjacent=False,
 
141
  # clear_btn = gr.Button("Clear")
142
  # run_btn = gr.Button("Run")
143
  # output = gr.Image(type="pil", label="Grounding Results", interactive=False).style(height=500)
144
+ output = gr.Image(type="pil", value="./images/649af982-e3af4e3a-75013d30-cdc71514-a34738fd.jpg", label="Grounding Results", interactive=False, height=500)
145
  hl_text.select(get_new_result, inputs=[input_image], outputs=[input_text, output])
146
  # run_btn.click(fn=inference, inputs=[input_image, input_text], outputs=output)
147
  # clear_btn.click(fn=clear, outputs=input_text)
148
+ demo.launch()
149
 
150
 
med_rpg/__pycache__/data_loader.cpython-310.pyc CHANGED
Binary files a/med_rpg/__pycache__/data_loader.cpython-310.pyc and b/med_rpg/__pycache__/data_loader.cpython-310.pyc differ
 
med_rpg/__pycache__/med_rpg.cpython-310.pyc CHANGED
Binary files a/med_rpg/__pycache__/med_rpg.cpython-310.pyc and b/med_rpg/__pycache__/med_rpg.cpython-310.pyc differ
 
med_rpg/__pycache__/transforms.cpython-310.pyc CHANGED
Binary files a/med_rpg/__pycache__/transforms.cpython-310.pyc and b/med_rpg/__pycache__/transforms.cpython-310.pyc differ
 
med_rpg/models/__pycache__/MHA.cpython-310.pyc CHANGED
Binary files a/med_rpg/models/__pycache__/MHA.cpython-310.pyc and b/med_rpg/models/__pycache__/MHA.cpython-310.pyc differ
 
med_rpg/models/__pycache__/__init__.cpython-310.pyc CHANGED
Binary files a/med_rpg/models/__pycache__/__init__.cpython-310.pyc and b/med_rpg/models/__pycache__/__init__.cpython-310.pyc differ
 
med_rpg/models/__pycache__/trans_vg_ca.cpython-310.pyc CHANGED
Binary files a/med_rpg/models/__pycache__/trans_vg_ca.cpython-310.pyc and b/med_rpg/models/__pycache__/trans_vg_ca.cpython-310.pyc differ
 
med_rpg/models/__pycache__/vl_transformer.cpython-310.pyc CHANGED
Binary files a/med_rpg/models/__pycache__/vl_transformer.cpython-310.pyc and b/med_rpg/models/__pycache__/vl_transformer.cpython-310.pyc differ
 
med_rpg/models/language_model/__pycache__/__init__.cpython-310.pyc CHANGED
Binary files a/med_rpg/models/language_model/__pycache__/__init__.cpython-310.pyc and b/med_rpg/models/language_model/__pycache__/__init__.cpython-310.pyc differ
 
med_rpg/models/language_model/__pycache__/bert.cpython-310.pyc CHANGED
Binary files a/med_rpg/models/language_model/__pycache__/bert.cpython-310.pyc and b/med_rpg/models/language_model/__pycache__/bert.cpython-310.pyc differ
 
med_rpg/models/visual_model/__pycache__/__init__.cpython-310.pyc CHANGED
Binary files a/med_rpg/models/visual_model/__pycache__/__init__.cpython-310.pyc and b/med_rpg/models/visual_model/__pycache__/__init__.cpython-310.pyc differ
 
med_rpg/models/visual_model/__pycache__/backbone.cpython-310.pyc CHANGED
Binary files a/med_rpg/models/visual_model/__pycache__/backbone.cpython-310.pyc and b/med_rpg/models/visual_model/__pycache__/backbone.cpython-310.pyc differ
 
med_rpg/models/visual_model/__pycache__/detr.cpython-310.pyc CHANGED
Binary files a/med_rpg/models/visual_model/__pycache__/detr.cpython-310.pyc and b/med_rpg/models/visual_model/__pycache__/detr.cpython-310.pyc differ
 
med_rpg/models/visual_model/__pycache__/position_encoding.cpython-310.pyc CHANGED
Binary files a/med_rpg/models/visual_model/__pycache__/position_encoding.cpython-310.pyc and b/med_rpg/models/visual_model/__pycache__/position_encoding.cpython-310.pyc differ
 
med_rpg/models/visual_model/__pycache__/transformer.cpython-310.pyc CHANGED
Binary files a/med_rpg/models/visual_model/__pycache__/transformer.cpython-310.pyc and b/med_rpg/models/visual_model/__pycache__/transformer.cpython-310.pyc differ
 
med_rpg/utils/__pycache__/__init__.cpython-310.pyc CHANGED
Binary files a/med_rpg/utils/__pycache__/__init__.cpython-310.pyc and b/med_rpg/utils/__pycache__/__init__.cpython-310.pyc differ
 
med_rpg/utils/__pycache__/box_utils.cpython-310.pyc CHANGED
Binary files a/med_rpg/utils/__pycache__/box_utils.cpython-310.pyc and b/med_rpg/utils/__pycache__/box_utils.cpython-310.pyc differ
 
med_rpg/utils/__pycache__/genome_utils.cpython-310.pyc CHANGED
Binary files a/med_rpg/utils/__pycache__/genome_utils.cpython-310.pyc and b/med_rpg/utils/__pycache__/genome_utils.cpython-310.pyc differ
 
med_rpg/utils/__pycache__/misc.cpython-310.pyc CHANGED
Binary files a/med_rpg/utils/__pycache__/misc.cpython-310.pyc and b/med_rpg/utils/__pycache__/misc.cpython-310.pyc differ
 
med_rpg/utils/__pycache__/visual_bbox.cpython-310.pyc CHANGED
Binary files a/med_rpg/utils/__pycache__/visual_bbox.cpython-310.pyc and b/med_rpg/utils/__pycache__/visual_bbox.cpython-310.pyc differ
 
med_rpg/utils/__pycache__/word_utils.cpython-310.pyc CHANGED
Binary files a/med_rpg/utils/__pycache__/word_utils.cpython-310.pyc and b/med_rpg/utils/__pycache__/word_utils.cpython-310.pyc differ