MainiSandeep1987 commited on
Commit
82904d8
·
verified ·
1 Parent(s): 66082a2

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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")