Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ import cv2
|
|
| 5 |
from PIL import Image
|
| 6 |
|
| 7 |
# Load Cellpose pretrained model for cytoplasm
|
| 8 |
-
model = models.
|
| 9 |
|
| 10 |
def segment_and_count(image: Image.Image):
|
| 11 |
# Convert image to numpy RGB
|
|
|
|
| 5 |
from PIL import Image
|
| 6 |
|
| 7 |
# Load Cellpose pretrained model for cytoplasm
|
| 8 |
+
model = models.CellposeModel(model_type='cyto') # or 'nuclei' for nucleus
|
| 9 |
|
| 10 |
def segment_and_count(image: Image.Image):
|
| 11 |
# Convert image to numpy RGB
|