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