Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -122,6 +122,7 @@ def extract_middle_slices(nifti_path, output_image_path, slice_size=180, center=
|
|
122 |
else:
|
123 |
labeled_data = resampled_data
|
124 |
num_features = None # Not needed if we're not labeling
|
|
|
125 |
|
126 |
# Compute or reuse the center of mass
|
127 |
if center is None:
|
|
|
122 |
else:
|
123 |
labeled_data = resampled_data
|
124 |
num_features = None # Not needed if we're not labeling
|
125 |
+
labeled_data_resampled = resampled_data
|
126 |
|
127 |
# Compute or reuse the center of mass
|
128 |
if center is None:
|