ClassCat commited on
Commit
1b3b531
·
1 Parent(s): 6b984a6

update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -9
app.py CHANGED
@@ -129,14 +129,6 @@ with gr.Blocks(title="Brain tumor 3D segmentation with MONAIMNIST - ClassCat",
129
 
130
  gr.HTML("""<div style="font-family:'Times New Roman', 'Serif'; font-size:16pt; font-weight:bold; text-align:center; color:royalblue;">Brain tumor 3D segmentation with MONAI</div>""")
131
 
132
- gr.HTML("""<div align="right">)
133
- Reference
134
- <ul>
135
- <li>ipynb
136
- </ul>
137
- </div>
138
- """)
139
-
140
  gr.HTML("""<h4 style="color:navy;">1. Select an example, which includes input images and label images, by clicking "Example x" button.</h4>""")
141
 
142
  with gr.Row():
@@ -194,9 +186,16 @@ Reference
194
  output_image2 = gr.Image(label="output channel 2", type="pil")
195
 
196
  send_btn = gr.Button("Infer")
197
-
198
  send_btn.click(fn=predict, inputs=[sample_index], outputs=[output_image0, output_image1, output_image2])
199
 
 
 
 
 
 
 
 
 
200
  #demo.queue()
201
  demo.launch(debug=True)
202
 
 
129
 
130
  gr.HTML("""<div style="font-family:'Times New Roman', 'Serif'; font-size:16pt; font-weight:bold; text-align:center; color:royalblue;">Brain tumor 3D segmentation with MONAI</div>""")
131
 
 
 
 
 
 
 
 
 
132
  gr.HTML("""<h4 style="color:navy;">1. Select an example, which includes input images and label images, by clicking "Example x" button.</h4>""")
133
 
134
  with gr.Row():
 
186
  output_image2 = gr.Image(label="output channel 2", type="pil")
187
 
188
  send_btn = gr.Button("Infer")
 
189
  send_btn.click(fn=predict, inputs=[sample_index], outputs=[output_image0, output_image1, output_image2])
190
 
191
+ gr.HTML("""<div>)
192
+ <h4 style="color:navy;">Reference</h4>
193
+ <ul>
194
+ <li><a href="https://github.com/Project-MONAI/tutorials/blob/main/3d_segmentation/brats_segmentation_3d.ipynb" target="_blank">Brain tumor 3D segmentation with MONAI</a>
195
+ </ul>
196
+ </div>
197
+ """)
198
+
199
  #demo.queue()
200
  demo.launch(debug=True)
201