hhhhhh0103 commited on
Commit
598c842
Β·
verified Β·
1 Parent(s): 0b2af16

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -233,7 +233,7 @@ def predict(im1,im2):
233
  examples = [
234
  ['./example/prostate_2d/image1.png', './example/prostate_2d/image2.png'],
235
  ['./example/cardiac_2d/image1.png', './example/cardiac_2d/image2.png'],
236
- # ['./example/pathology/1B_B7_R.png', './example/pathology/1B_B7_T.png'],
237
  ]
238
 
239
 
@@ -247,13 +247,13 @@ gradio_app = gr.Interface(
247
  <strong>Register anything with ROI-based registration representation.</strong> <br>\
248
  Choose an example below &#128293; &#128293; &#128293; <br>\
249
  Or, upload by yourself: <br>\
250
- 1. Upload images to be valided to 'img1' and 'img2'. <br>2. Upload images to 'im1' and 'im2'. <br>\
251
  <br> \
252
  πŸ’Ž The correspondence representation is presented by multiple paired-ROIs in the same color. <br>\
253
  πŸ’Ž Examples below are all medical images for the algorithm proposed for medical registration initially. <br>\
254
  πŸ’Ž Current UI interface only unleashes a small part of the capabilities of SAMReg, i.e., 2D registration w 'embedding' mode. \
255
  </p>",
256
- cache_examples=False,
257
  # allow_flagging="never",
258
  )
259
 
 
233
  examples = [
234
  ['./example/prostate_2d/image1.png', './example/prostate_2d/image2.png'],
235
  ['./example/cardiac_2d/image1.png', './example/cardiac_2d/image2.png'],
236
+ ['./example/pathology/1B_B7_R.png', './example/pathology/1B_B7_T.png'],
237
  ]
238
 
239
 
 
247
  <strong>Register anything with ROI-based registration representation.</strong> <br>\
248
  Choose an example below &#128293; &#128293; &#128293; <br>\
249
  Or, upload by yourself: <br>\
250
+ 1. Upload images to be aligned to 'img1' and 'img2'. <br>\
251
  <br> \
252
  πŸ’Ž The correspondence representation is presented by multiple paired-ROIs in the same color. <br>\
253
  πŸ’Ž Examples below are all medical images for the algorithm proposed for medical registration initially. <br>\
254
  πŸ’Ž Current UI interface only unleashes a small part of the capabilities of SAMReg, i.e., 2D registration w 'embedding' mode. \
255
  </p>",
256
+ cache_examples=True,
257
  # allow_flagging="never",
258
  )
259