veb-101 commited on
Commit
47fbff8
·
1 Parent(s): ca278b3

component size adjustment

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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=300, width=300, label="Input image")
68
- img_output = gr.AnnotatedImage(label="Predictions", height=300, width=300, 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)
 
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)