Upload folder using huggingface_hub
Browse files
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 |
-
|
| 37 |
-
st.write(f"Predicted Product Store Sales Total:
|
| 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 |
+
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")
|