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