Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files- streamlit_app.py +1 -2
streamlit_app.py
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
-
%%writefile streamlit_app.py
|
| 2 |
|
| 3 |
import streamlit as st
|
| 4 |
import pandas as pd
|
|
@@ -81,4 +80,4 @@ if st.button("Predict"):
|
|
| 81 |
prediction_proba = model.predict_proba(input_data)[0, 1]
|
| 82 |
prediction = (prediction_proba >= classification_threshold).astype(int)
|
| 83 |
result = "churn" if prediction == 1 else "not churn"
|
| 84 |
-
st.write(f"Based on the information provided, the customer is likely to {result}.")
|
|
|
|
|
|
|
| 1 |
|
| 2 |
import streamlit as st
|
| 3 |
import pandas as pd
|
|
|
|
| 80 |
prediction_proba = model.predict_proba(input_data)[0, 1]
|
| 81 |
prediction = (prediction_proba >= classification_threshold).astype(int)
|
| 82 |
result = "churn" if prediction == 1 else "not churn"
|
| 83 |
+
st.write(f"Based on the information provided, the customer is likely to {result}.")
|