Upload folder using huggingface_hub
Browse files
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()['
|
| 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.")
|