ClassCat commited on
Commit
4b17e5b
1 Parent(s): 2047c26

add app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -0
app.py CHANGED
@@ -118,12 +118,33 @@ with gr.Blocks(title="Spleen 3D segmentation with MONAI - ClassCat",
118
  ex_image5 = gr.Image(value='thumbnails/val_image5.png', interactive=False, label='ex 6')
119
  ex_image5.style(width=128, height=128)
120
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
121
  ex_btn0.click(fn=load_image0, outputs=[sample_index, input_image, label_image])
122
  ex_btn1.click(fn=load_image1, outputs=[sample_index, input_image, label_image])
123
  ex_btn2.click(fn=load_image2, outputs=[sample_index, input_image, label_image])
124
  ex_btn3.click(fn=load_image3, outputs=[sample_index, input_image, label_image])
125
  ex_btn4.click(fn=load_image4, outputs=[sample_index, input_image, label_image])
126
  ex_btn5.click(fn=load_image5, outputs=[sample_index, input_image, label_image])
 
 
127
 
128
 
129
  gr.HTML("""<br/>""")
 
118
  ex_image5 = gr.Image(value='thumbnails/val_image5.png', interactive=False, label='ex 6')
119
  ex_image5.style(width=128, height=128)
120
 
121
+ with gr.Column():
122
+ ex_btn6 = gr.Button("Example 7")
123
+ ex_btn6.style(full_width=False, css="width:20px;")
124
+ ex_image6 = gr.Image(value='thumbnails/val_image6.png', interactive=False, label='ex 7')
125
+ ex_image6.style(width=128, height=128)
126
+
127
+ with gr.Column():
128
+ ex_btn7 = gr.Button("Example 8")
129
+ ex_btn7.style(full_width=False, css="width:20px;")
130
+ ex_image7 = gr.Image(value='thumbnails/val_image7.png', interactive=False, label='ex 8')
131
+ ex_image7.style(width=128, height=128)
132
+
133
+ with gr.Column():
134
+ ex_btn8 = gr.Button("Example 9")
135
+ ex_btn8.style(full_width=False, css="width:20px;")
136
+ ex_image8 = gr.Image(value='thumbnails/val_image8.png', interactive=False, label='ex 9')
137
+ ex_image8.style(width=128, height=128)
138
+
139
+
140
  ex_btn0.click(fn=load_image0, outputs=[sample_index, input_image, label_image])
141
  ex_btn1.click(fn=load_image1, outputs=[sample_index, input_image, label_image])
142
  ex_btn2.click(fn=load_image2, outputs=[sample_index, input_image, label_image])
143
  ex_btn3.click(fn=load_image3, outputs=[sample_index, input_image, label_image])
144
  ex_btn4.click(fn=load_image4, outputs=[sample_index, input_image, label_image])
145
  ex_btn5.click(fn=load_image5, outputs=[sample_index, input_image, label_image])
146
+ ex_btn6.click(fn=load_image6, outputs=[sample_index, input_image, label_image])
147
+ ex_btn7.click(fn=load_image7, outputs=[sample_index, input_image, label_image])
148
 
149
 
150
  gr.HTML("""<br/>""")