Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -65,7 +65,7 @@ def classify_image(img):
|
|
65 |
std = np.std(img_array, axis=(0, 1))
|
66 |
img_array = (img_array - mean) / std
|
67 |
|
68 |
-
img_array = np.expand_dims(
|
69 |
img_array = preprocess_input(img_array)
|
70 |
|
71 |
|
@@ -81,7 +81,7 @@ iface = gr.Interface(
|
|
81 |
inputs="image",
|
82 |
outputs=["text", "image"], # Add an "image" output for the overlayed image
|
83 |
title="Xray Classification - KIMS",
|
84 |
-
description="Classify cxr into
|
85 |
)
|
86 |
|
87 |
|
|
|
65 |
std = np.std(img_array, axis=(0, 1))
|
66 |
img_array = (img_array - mean) / std
|
67 |
|
68 |
+
img_array = np.expand_dims(img_array, axis=0)
|
69 |
img_array = preprocess_input(img_array)
|
70 |
|
71 |
|
|
|
81 |
inputs="image",
|
82 |
outputs=["text", "image"], # Add an "image" output for the overlayed image
|
83 |
title="Xray Classification - KIMS",
|
84 |
+
description="Classify cxr into 'Cardiomegaly', 'Emphysema', 'Effusion', 'Hernia', 'Infiltration', 'Mass', 'Nodule', 'Atelectasis', 'Pneumothorax', 'Pleural_Thickening', 'Pneumonia', 'Fibrosis', 'Edema', 'Consolidation'. Built by Dr Sai and Dr Ajavindu"
|
85 |
)
|
86 |
|
87 |
|