tbuyuktanir commited on
Commit
31e57da
·
verified ·
1 Parent(s): 623ee35

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.Cellpose(model_type='cyto') # or 'nuclei' for nucleus
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