wszhang1021 commited on
Commit
5197922
·
1 Parent(s): 33eb9ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 {"Leave": float(prob[0][0]), "Stay": 1-float(prob[0][0])}, local_plot
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** 🪐"