Spaces:
Sleeping
Sleeping
dbouget
commited on
Commit
·
ac5b4c5
1
Parent(s):
7d0ab8e
More formatting, older gradio version compatible with Python 3.7
Browse files- requirements.txt +1 -1
- src/__init__.py +0 -1
- src/utils.py +2 -2
requirements.txt
CHANGED
|
@@ -1,2 +1,2 @@
|
|
| 1 |
raidionicsrads@git+https://github.com/dbouget/raidionics_rads_lib
|
| 2 |
-
gradio==3.
|
|
|
|
| 1 |
raidionicsrads@git+https://github.com/dbouget/raidionics_rads_lib
|
| 2 |
+
gradio==3.34.0
|
src/__init__.py
CHANGED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
|
|
|
|
|
|
src/utils.py
CHANGED
|
@@ -5,7 +5,7 @@ from skimage.measure import marching_cubes
|
|
| 5 |
|
| 6 |
|
| 7 |
def load_to_numpy(data_path):
|
| 8 |
-
if type(data_path)
|
| 9 |
data_path = data_path.name
|
| 10 |
|
| 11 |
image = nib.load(data_path)
|
|
@@ -27,7 +27,7 @@ def load_to_numpy(data_path):
|
|
| 27 |
|
| 28 |
|
| 29 |
def load_pred_volume_to_numpy(data_path):
|
| 30 |
-
if type(data_path)
|
| 31 |
data_path = data_path.name
|
| 32 |
|
| 33 |
image = nib.load(data_path)
|
|
|
|
| 5 |
|
| 6 |
|
| 7 |
def load_to_numpy(data_path):
|
| 8 |
+
if type(data_path) is not str:
|
| 9 |
data_path = data_path.name
|
| 10 |
|
| 11 |
image = nib.load(data_path)
|
|
|
|
| 27 |
|
| 28 |
|
| 29 |
def load_pred_volume_to_numpy(data_path):
|
| 30 |
+
if type(data_path) is not str:
|
| 31 |
data_path = data_path.name
|
| 32 |
|
| 33 |
image = nib.load(data_path)
|