Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ import nibabel as nib
|
|
| 8 |
import matplotlib.pyplot as plt
|
| 9 |
import spaces # Import spaces for GPU decoration
|
| 10 |
import numpy as np
|
| 11 |
-
from scipy.ndimage import center_of_mass, zoom
|
| 12 |
|
| 13 |
# Define paths
|
| 14 |
MODEL_DIR = "./model" # Local directory to store the downloaded model
|
|
|
|
| 8 |
import matplotlib.pyplot as plt
|
| 9 |
import spaces # Import spaces for GPU decoration
|
| 10 |
import numpy as np
|
| 11 |
+
from scipy.ndimage import center_of_mass, zoom, label, generate_binary_structure
|
| 12 |
|
| 13 |
# Define paths
|
| 14 |
MODEL_DIR = "./model" # Local directory to store the downloaded model
|