mouseland commited on
Commit
aabd05b
·
verified ·
1 Parent(s): fa3e72c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -166,7 +166,8 @@ def run_model_gpu1000(img):
166
  from zipfile import ZipFile
167
  def cellpose_segment(filepath, resize = 1000):
168
 
169
- zip_path = 'masks.zip'
 
170
  with ZipFile(zip_path, 'w') as myzip:
171
  for j in range((len(filepath))):
172
  print(j)
 
166
  from zipfile import ZipFile
167
  def cellpose_segment(filepath, resize = 1000):
168
 
169
+ zip_path = os.path.splitext(filepath[-1])[0]+"_masks.zip"
170
+ #zip_path = 'masks.zip'
171
  with ZipFile(zip_path, 'w') as myzip:
172
  for j in range((len(filepath))):
173
  print(j)