Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -40,8 +40,8 @@ def predict(gender, SeniorCitizen, Partner, Dependents, Contract, tenure, Monthl
|
|
40 |
})
|
41 |
|
42 |
|
43 |
-
|
44 |
-
|
45 |
predictions = full_pipeline.predict_proba(input_data)
|
46 |
#take the index of the maximum probability
|
47 |
index=np.argmax(predictions)
|
|
|
40 |
})
|
41 |
|
42 |
|
43 |
+
# Make predictions using the loaded logistic regression model
|
44 |
+
#predict probabilities
|
45 |
predictions = full_pipeline.predict_proba(input_data)
|
46 |
#take the index of the maximum probability
|
47 |
index=np.argmax(predictions)
|