karora1804 commited on
Commit
a0faef8
·
verified ·
1 Parent(s): 56f8edf

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -41,7 +41,7 @@ input_data = {
41
  if st.button("Predict"):
42
  response = requests.post("https://karora1804-StoreTotalSalesPredictionBackend.hf.space/v1/storeSales", json=input_data) # Send data to Flask API
43
  if response.status_code == 200:
44
- prediction = response.json()['Predicted Total Sales:']
45
  st.success(f"Predicted Store Total Sales: {prediction}")
46
  else:
47
  st.error("Error making prediction.")
 
41
  if st.button("Predict"):
42
  response = requests.post("https://karora1804-StoreTotalSalesPredictionBackend.hf.space/v1/storeSales", json=input_data) # Send data to Flask API
43
  if response.status_code == 200:
44
+ prediction = response.json()['Predicted_Store_Total_Sales']
45
  st.success(f"Predicted Store Total Sales: {prediction}")
46
  else:
47
  st.error("Error making prediction.")