Spaces:
Runtime error
Runtime error
poornesh110
commited on
Commit
•
fb0d44e
1
Parent(s):
07eee1a
Update app.py
Browse files
app.py
CHANGED
@@ -396,7 +396,13 @@ def pneumonia(image):
|
|
396 |
mask = sitk.ReadImage(mask, sitk.sitkInt8)
|
397 |
features = extractor.execute(image_, mask)
|
398 |
|
399 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
400 |
cols = df.columns[22:]
|
401 |
|
402 |
# Create new dataframe with selected columns
|
|
|
396 |
mask = sitk.ReadImage(mask, sitk.sitkInt8)
|
397 |
features = extractor.execute(image_, mask)
|
398 |
|
399 |
+
data = []
|
400 |
+
values = []
|
401 |
+
for key in features:
|
402 |
+
values.append(features[key])
|
403 |
+
data.extend([values])
|
404 |
+
|
405 |
+
df.loc[0] = data[0]
|
406 |
cols = df.columns[22:]
|
407 |
|
408 |
# Create new dataframe with selected columns
|