Spaces:
Build error
Build error
Commit
·
5197922
1
Parent(s):
33eb9ba
Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ def main_func(age, sex, cp, trtbps, chol, fbs, restecg, thalachh, exng, oldpeak,
|
|
30 |
local_plot = plt.gcf()
|
31 |
plt.close()
|
32 |
|
33 |
-
return {"
|
34 |
|
35 |
# Create the UI
|
36 |
title = "**Heart Attack Predictor & Interpreter** 🪐"
|
|
|
30 |
local_plot = plt.gcf()
|
31 |
plt.close()
|
32 |
|
33 |
+
return {"Low chance": float(prob[0][0]), "High chance": 1-float(prob[0][0])}, local_plot
|
34 |
|
35 |
# Create the UI
|
36 |
title = "**Heart Attack Predictor & Interpreter** 🪐"
|