Update app.py
Browse files
app.py
CHANGED
|
@@ -164,7 +164,6 @@ def run_model_gpu1000(img):
|
|
| 164 |
return masks, flows
|
| 165 |
|
| 166 |
from zipfile import ZipFile
|
| 167 |
-
#@spaces.GPU(duration=10)
|
| 168 |
def cellpose_segment(filepath, resize = 1000):
|
| 169 |
|
| 170 |
zip_path = 'masks.zip'
|
|
@@ -253,6 +252,8 @@ def upload_file(filepath):
|
|
| 253 |
|
| 254 |
#b1 = gr.DownloadButton("Download masks as TIFF", visible=False)
|
| 255 |
#b2 = gr.DownloadButton("Download outline image as PNG", visible=False)
|
|
|
|
|
|
|
| 256 |
return filepath[-1] #, b1, b2
|
| 257 |
|
| 258 |
|
|
|
|
| 164 |
return masks, flows
|
| 165 |
|
| 166 |
from zipfile import ZipFile
|
|
|
|
| 167 |
def cellpose_segment(filepath, resize = 1000):
|
| 168 |
|
| 169 |
zip_path = 'masks.zip'
|
|
|
|
| 252 |
|
| 253 |
#b1 = gr.DownloadButton("Download masks as TIFF", visible=False)
|
| 254 |
#b2 = gr.DownloadButton("Download outline image as PNG", visible=False)
|
| 255 |
+
for f in filepath:
|
| 256 |
+
print(f)
|
| 257 |
return filepath[-1] #, b1, b2
|
| 258 |
|
| 259 |
|