mouseland commited on
Commit
2949f09
·
verified ·
1 Parent(s): 41d03f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -46,8 +46,8 @@ def download_weights_old():
46
  fid.write(r.content)
47
 
48
  try:
49
- #fpath = download_weights()
50
- model = models.CellposeModel(gpu=True, pretrained_model = 'cyto3')# , pretrained_model=fpath)
51
  except Exception as e:
52
  print(f"Error loading model: {e}")
53
  exit(1)
@@ -339,7 +339,8 @@ with gr.Blocks(title = "Hello",
339
  #down_btn.click(download_function, None, [down_btn, down_btn2])
340
 
341
  gr.HTML("""<h4 style="color:white;"> Notes:<br>
342
- <li>you can load and process single-image tifs, but they won't display in the input field above.
 
343
  <li>you can load multiple files and download a zip of the segmentations
344
  <li>install Cellpose-SAM locally for full functionality.
345
  </h4>""")
 
46
  fid.write(r.content)
47
 
48
  try:
49
+ fpath = download_weights()
50
+ model = models.CellposeModel(gpu=True, pretrained_model = fpath)
51
  except Exception as e:
52
  print(f"Error loading model: {e}")
53
  exit(1)
 
339
  #down_btn.click(download_function, None, [down_btn, down_btn2])
340
 
341
  gr.HTML("""<h4 style="color:white;"> Notes:<br>
342
+ <li>you can load and process 2D multi-channel tifs.
343
+ <li>the smallest dimension of a tif --> channels
344
  <li>you can load multiple files and download a zip of the segmentations
345
  <li>install Cellpose-SAM locally for full functionality.
346
  </h4>""")