Update app.py
Browse files
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 =
|
|
|
|
| 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)
|