mertkarabacak
commited on
Upload app.py
Browse files
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 |
-
|
|
|
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 |
|