ccwizard commited on
Commit
71a9f61
·
verified ·
1 Parent(s): f71376e

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -33,7 +33,7 @@ if st.button("Predict", type='primary'):
33
  response = requests.post("https://ccwizard-SuperKartSalesPredictionRandomForestBackend.hf.space/v1/predict", json=product_data)
34
  if response.status_code == 200:
35
  result = response.json()
36
- predicted_sales = result["Sales"]
37
  st.write(f"Predicted Product Store Sales Total: ₹{predicted_sales:.2f}")
38
  else:
39
  st.error("Error in API request")
 
33
  response = requests.post("https://ccwizard-SuperKartSalesPredictionRandomForestBackend.hf.space/v1/predict", json=product_data)
34
  if response.status_code == 200:
35
  result = response.json()
36
+ print(result)
37
  st.write(f"Predicted Product Store Sales Total: ₹{predicted_sales:.2f}")
38
  else:
39
  st.error("Error in API request")