Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -273,7 +273,7 @@ def run_nnunet_predict(nifti_file,hd_bet=False):
|
|
273 |
nib.save(nib.Nifti1Image(labeled_mask.astype(np.int16), img.affine), labeled_mask_path)
|
274 |
|
275 |
# Return paths for the Gradio interface
|
276 |
-
return new_output_file, input_slice_path, output_slice_path
|
277 |
else:
|
278 |
return "Error: Output file not found."
|
279 |
except subprocess.CalledProcessError as e:
|
|
|
273 |
nib.save(nib.Nifti1Image(labeled_mask.astype(np.int16), img.affine), labeled_mask_path)
|
274 |
|
275 |
# Return paths for the Gradio interface
|
276 |
+
return new_output_file, input_slice_path, output_slice_path, labeled_mask_path
|
277 |
else:
|
278 |
return "Error: Output file not found."
|
279 |
except subprocess.CalledProcessError as e:
|