mertkarabacak commited on
Commit
ed4544a
·
verified ·
1 Parent(s): c1fc42d

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -75,7 +75,8 @@ def y1_predict(*args):
75
  df1 = pd.DataFrame([args], columns=x1.columns)
76
  pos_pred = y1_calib_model.predict_proba(df1)
77
  prob = pos_pred[0][1]
78
- output = output_y1.format(prob * 100)
 
79
  return output
80
 
81
 
 
75
  df1 = pd.DataFrame([args], columns=x1.columns)
76
  pos_pred = y1_calib_model.predict_proba(df1)
77
  prob = pos_pred[0][1]
78
+ prob_percent = round(prob * 100) # Round to nearest whole number
79
+ output = output_y1.format(prob_percent)
80
  return output
81
 
82