Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,7 +38,7 @@ if st.button("Predict", type='primary'):
|
|
| 38 |
churn_prediction = result["Prediction"] # Extract only the value
|
| 39 |
st.write(f"Based on the information provided, the customer with ID {CustomerID} is likely to {churn_prediction}.")
|
| 40 |
else:
|
| 41 |
-
st.error("Error in API request")
|
| 42 |
|
| 43 |
# Batch Prediction
|
| 44 |
st.subheader("Batch Prediction")
|
|
|
|
| 38 |
churn_prediction = result["Prediction"] # Extract only the value
|
| 39 |
st.write(f"Based on the information provided, the customer with ID {CustomerID} is likely to {churn_prediction}.")
|
| 40 |
else:
|
| 41 |
+
st.error(f"Error in API request: {response}")
|
| 42 |
|
| 43 |
# Batch Prediction
|
| 44 |
st.subheader("Batch Prediction")
|