MedMagik commited on
Commit
2672fba
·
verified ·
1 Parent(s): b819c0f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(zoomed_img, axis=0)
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 one of 20 classes - Atelectasis, Cardiomegaly, Consolidation, Edema, Effusion, Emphysema, Fibrosis, Hernia, Infiltration, Mass, Nodule, Pleural Thickening, Pneumonia, Pneumothorax, Pneumoperitoneum, Pneumomediastinum, Subcutaneous Emphysema, Tortuous Aorta, Calcification of the Aorta, No Finding. Built by Dr Sai and Dr Ajavindu"
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