Update app.py
Browse files
app.py
CHANGED
@@ -30,8 +30,6 @@ with gr.Blocks() as demo:
|
|
30 |
gr.HTML("<h1 style='text-align: center;'>MedViT: A Vision Transformer-Driven Method for Generating Medical Reports π₯π€</h1>")
|
31 |
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>")
|
32 |
|
33 |
-
with gr.Row():
|
34 |
-
model_choice = gr.Radio(["CLIP-GPT2", "ViT-GPT2", "ViT-CoAttention"], label="Select Model")
|
35 |
|
36 |
with gr.Row():
|
37 |
sample_images = [
|
@@ -48,6 +46,8 @@ with gr.Blocks() as demo:
|
|
48 |
sample_images_gallery = gr.Gallery(value = sample_images,label="Sample Images")
|
49 |
|
50 |
with gr.Row():
|
|
|
|
|
51 |
generate_button = gr.Button("Generate Caption")
|
52 |
|
53 |
|
|
|
30 |
gr.HTML("<h1 style='text-align: center;'>MedViT: A Vision Transformer-Driven Method for Generating Medical Reports π₯π€</h1>")
|
31 |
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>")
|
32 |
|
|
|
|
|
33 |
|
34 |
with gr.Row():
|
35 |
sample_images = [
|
|
|
46 |
sample_images_gallery = gr.Gallery(value = sample_images,label="Sample Images")
|
47 |
|
48 |
with gr.Row():
|
49 |
+
model_choice = gr.Radio(["CLIP-GPT2", "ViT-GPT2", "ViT-CoAttention"], label="Select Model")
|
50 |
+
|
51 |
generate_button = gr.Button("Generate Caption")
|
52 |
|
53 |
|