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