Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -53,8 +53,8 @@ def get_patient_outcome(age, sex, height, weight, is_pregnant, murmur):
|
|
| 53 |
output = model.predict(data)[0]
|
| 54 |
# 0 - Normal, 1 - Abnormal
|
| 55 |
results = {
|
| 56 |
-
'Normal': output
|
| 57 |
-
'Abnormal': output
|
| 58 |
}
|
| 59 |
|
| 60 |
return results
|
|
|
|
| 53 |
output = model.predict(data)[0]
|
| 54 |
# 0 - Normal, 1 - Abnormal
|
| 55 |
results = {
|
| 56 |
+
'Normal': output == 0,
|
| 57 |
+
'Abnormal': output == 1
|
| 58 |
}
|
| 59 |
|
| 60 |
return results
|