pragmat commited on
Commit
78fe2e6
·
verified ·
1 Parent(s): b6566b8

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +0 -17
app.py CHANGED
@@ -46,20 +46,3 @@ if st.button("Predict"):
46
  st.success(f"Predicted Sales Revenue (in dollars): {prediction}")
47
  else:
48
  st.error("Error making prediction.")
49
-
50
- # # Section for batch prediction
51
- # st.subheader("Batch Prediction")
52
-
53
- # # Allow users to upload a CSV file for batch prediction
54
- # uploaded_file = st.file_uploader("Upload CSV file for batch prediction", type=["csv"])
55
-
56
- # # Make batch prediction when the "Predict Batch" button is clicked
57
- # if uploaded_file is not None:
58
- # if st.button("Predict Batch"):
59
- # response = requests.post("https://pragmat-SalesRevenuePredictionBackend.hf.space/v1/revenuebatch", files={"file": uploaded_file}) # Send file to Flask API
60
- # if response.status_code == 200:
61
- # predictions = response.json()
62
- # st.success("Batch predictions completed!")
63
- # st.write(predictions) # Display the predictions
64
- # else:
65
- # st.error("Error making batch prediction.")
 
46
  st.success(f"Predicted Sales Revenue (in dollars): {prediction}")
47
  else:
48
  st.error("Error making prediction.")