Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
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
|
| 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}")
|