Spaces:
Runtime error
Runtime error
datasciencedojo
commited on
Commit
·
7bedfbc
1
Parent(s):
215728f
Update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ def predict_pneumonia(img):
|
|
48 |
pneumonia_prediction = "Chest XRay is normal no signs of pneumonia"
|
49 |
other_class = "Pneumonia"
|
50 |
else:
|
51 |
-
other_class = "
|
52 |
pneumonia_prediction = "Chest XRay shows signs of pneumonia"
|
53 |
|
54 |
res = {"Labels":[c_name,other_class], "Confidence Score":[(confidence_score*100),(1-confidence_score)*100],"Total":100}
|
|
|
48 |
pneumonia_prediction = "Chest XRay is normal no signs of pneumonia"
|
49 |
other_class = "Pneumonia"
|
50 |
else:
|
51 |
+
other_class = "Normal"
|
52 |
pneumonia_prediction = "Chest XRay shows signs of pneumonia"
|
53 |
|
54 |
res = {"Labels":[c_name,other_class], "Confidence Score":[(confidence_score*100),(1-confidence_score)*100],"Total":100}
|