component size adjustment
Browse files
app.py
CHANGED
@@ -64,8 +64,8 @@ if __name__ == "__main__":
|
|
64 |
with gr.Blocks(title="Medical Image Segmentation") as demo:
|
65 |
gr.Markdown("""<h1><center>Medical Image Segmentation with UW-Madison GI Tract Dataset</center></h1>""")
|
66 |
with gr.Row():
|
67 |
-
img_input = gr.Image(type="pil", height=
|
68 |
-
img_output = gr.AnnotatedImage(label="Predictions", height=
|
69 |
|
70 |
section_btn = gr.Button("Generate Predictions")
|
71 |
section_btn.click(partial(predict, model=model, preprocess_fn=preprocess, device=DEVICE), img_input, img_output)
|
|
|
64 |
with gr.Blocks(title="Medical Image Segmentation") as demo:
|
65 |
gr.Markdown("""<h1><center>Medical Image Segmentation with UW-Madison GI Tract Dataset</center></h1>""")
|
66 |
with gr.Row():
|
67 |
+
img_input = gr.Image(type="pil", height=360, width=360, label="Input image")
|
68 |
+
img_output = gr.AnnotatedImage(label="Predictions", height=360, width=360, color_map=class2hexcolor)
|
69 |
|
70 |
section_btn = gr.Button("Generate Predictions")
|
71 |
section_btn.click(partial(predict, model=model, preprocess_fn=preprocess, device=DEVICE), img_input, img_output)
|