csankaran3 commited on
Commit
78d7c0c
·
verified ·
1 Parent(s): 7769498

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -58,9 +58,11 @@ st.subheader("Batch Prediction")
58
  # Allow users to upload a CSV file for batch prediction
59
  uploaded_file = st.file_uploader("Upload CSV file for batch sales prediction", type=["csv"])
60
 
 
 
61
  # Make batch prediction when the "Predict Batch" button is clicked
62
  if uploaded_file is not None:
63
- if st.button("Predict Batch"):
64
  response = requests.post("https://csankaran3-backend.hf.space/v1/productbatch", files={"file": uploaded_file}) # Send file to Flask API
65
  if response.status_code == 200:
66
  predictions = response.json()
 
58
  # Allow users to upload a CSV file for batch prediction
59
  uploaded_file = st.file_uploader("Upload CSV file for batch sales prediction", type=["csv"])
60
 
61
+
62
+
63
  # Make batch prediction when the "Predict Batch" button is clicked
64
  if uploaded_file is not None:
65
+ if st.button("Predict Batch", type='primary'):
66
  response = requests.post("https://csankaran3-backend.hf.space/v1/productbatch", files={"file": uploaded_file}) # Send file to Flask API
67
  if response.status_code == 200:
68
  predictions = response.json()