dellazhangyd commited on
Commit
efdde20
1 Parent(s): 64a5f6e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 {"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** 🪐"
 
29
  local_plot = plt.gcf()
30
  plt.close()
31
 
32
+ return {"High Chance": float(prob[0][0]), "Low Chance": 1-float(prob[0][0])}, local_plot
33
 
34
  # Create the UI
35
  title = "**Heart Attack Predictor & Interpreter** 🪐"