Update app.py
Browse files
app.py
CHANGED
|
@@ -46,8 +46,8 @@ def download_weights_old():
|
|
| 46 |
fid.write(r.content)
|
| 47 |
|
| 48 |
try:
|
| 49 |
-
|
| 50 |
-
model = models.CellposeModel(gpu=True, pretrained_model =
|
| 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
|
|
|
|
| 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>""")
|