Jyothirmai
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -15,23 +15,24 @@ def generate_caption_clipgpt(image):
|
|
15 |
# caption = vitGPT.generate_caption(image)
|
16 |
# return caption
|
17 |
|
18 |
-
|
19 |
-
sample_images = [
|
20 |
-
"CXR191_IM-0591-1001.png",
|
21 |
-
"CXR192_IM-0598-1001.png",
|
22 |
-
"CXR193_IM-0601-1001.png",
|
23 |
-
"CXR194_IM-0609-1001.png",
|
24 |
-
"CXR195_IM-0618-1001.png"
|
25 |
-
]
|
26 |
|
27 |
with gr.Blocks() as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
gr.HTML("<h1 style='text-align: center;'>MedViT: A Vision Transformer-Driven Method for Generating Medical Reports π₯π€</h1>")
|
29 |
gr.HTML("<p style='text-align: center;'>You can generate captions by uploading an X-Ray and selecting a model of your choice below</p>")
|
30 |
|
31 |
with gr.Row():
|
32 |
image = gr.Image(label="Upload Chest X-ray")
|
33 |
sample_images_gallery = gr.Gallery(
|
34 |
-
sample_images,
|
35 |
label="Sample Images",
|
36 |
)
|
37 |
with gr.Row():
|
|
|
15 |
# caption = vitGPT.generate_caption(image)
|
16 |
# return caption
|
17 |
|
18 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
|
20 |
with gr.Blocks() as demo:
|
21 |
+
|
22 |
+
sample_images = [
|
23 |
+
"CXR191_IM-0591-1001.png",
|
24 |
+
"CXR192_IM-0598-1001.png",
|
25 |
+
"CXR193_IM-0601-1001.png",
|
26 |
+
"CXR194_IM-0609-1001.png",
|
27 |
+
"CXR195_IM-0618-1001.png"
|
28 |
+
]
|
29 |
gr.HTML("<h1 style='text-align: center;'>MedViT: A Vision Transformer-Driven Method for Generating Medical Reports π₯π€</h1>")
|
30 |
gr.HTML("<p style='text-align: center;'>You can generate captions by uploading an X-Ray and selecting a model of your choice below</p>")
|
31 |
|
32 |
with gr.Row():
|
33 |
image = gr.Image(label="Upload Chest X-ray")
|
34 |
sample_images_gallery = gr.Gallery(
|
35 |
+
value = sample_images,
|
36 |
label="Sample Images",
|
37 |
)
|
38 |
with gr.Row():
|