supravab commited on
Commit
fc0067e
·
verified ·
1 Parent(s): c05a5c6

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -40,7 +40,7 @@ if st.button("Predict", type='primary'):
40
  response = requests.post("https://supravab-supbskartbackend.hf.space/v1/predict", json=store_data) # enter user name and space name before running the cell
41
  if response.status_code == 200:
42
  result = response.json()
43
- sales_prediction = result["predicted store sales total-"] # Extract only the value
44
  st.write(f"Based on the information provided, the store sales is likely to {sales_prediction}.")
45
  else:
46
  st.error(f"Error in Super Kart API request: {response.status_code} - {response.text}")
 
40
  response = requests.post("https://supravab-supbskartbackend.hf.space/v1/predict", json=store_data) # enter user name and space name before running the cell
41
  if response.status_code == 200:
42
  result = response.json()
43
+ sales_prediction = result["predicted store sales total"] # Extract only the value
44
  st.write(f"Based on the information provided, the store sales is likely to {sales_prediction}.")
45
  else:
46
  st.error(f"Error in Super Kart API request: {response.status_code} - {response.text}")