mertkarabacak
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -134,7 +134,7 @@ def y2_predict(*args):
|
|
134 |
return output
|
135 |
|
136 |
def y3_predict(*args):
|
137 |
-
|
138 |
pos_pred = y3_calib_model.predict_proba(df3)
|
139 |
prob = pos_pred[0][1]
|
140 |
prob_percent = round(prob * 100)
|
|
|
134 |
return output
|
135 |
|
136 |
def y3_predict(*args):
|
137 |
+
df3 = pd.DataFrame([args], columns=x3.columns)
|
138 |
pos_pred = y3_calib_model.predict_proba(df3)
|
139 |
prob = pos_pred[0][1]
|
140 |
prob_percent = round(prob * 100)
|