Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -49,7 +49,7 @@ st.subheader("Batch Prediction")
|
|
| 49 |
file = st.file_uploader("Upload CSV file", type=["csv"])
|
| 50 |
if file is not None:
|
| 51 |
if st.button("Predict for Batch", type='primary'):
|
| 52 |
-
response = requests.post("https://MainiSandeep1987-BackEndFlaskAPITelecomChurnPrediction.hf.space/v1/customerbatch", files={"file": file}) # enter user name and space name before running the cell
|
| 53 |
if response.status_code == 200:
|
| 54 |
result = response.json()
|
| 55 |
st.header("Batch Prediction Results")
|
|
|
|
| 49 |
file = st.file_uploader("Upload CSV file", type=["csv"])
|
| 50 |
if file is not None:
|
| 51 |
if st.button("Predict for Batch", type='primary'):
|
| 52 |
+
response = requests.post("https://MainiSandeep1987-BackEndFlaskAPITelecomChurnPrediction.hf.space/v1/customerbatch", files={"file": file.getvalue()}) # enter user name and space name before running the cell
|
| 53 |
if response.status_code == 200:
|
| 54 |
result = response.json()
|
| 55 |
st.header("Batch Prediction Results")
|