Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -30,7 +30,7 @@ product_data = {
|
|
| 30 |
}
|
| 31 |
|
| 32 |
if st.button("Predict", type='primary'):
|
| 33 |
-
response = requests.post("https://ccwizard-
|
| 34 |
if response.status_code == 200:
|
| 35 |
result = response.json()
|
| 36 |
predicted_sales = result["Sales"]
|
|
|
|
| 30 |
}
|
| 31 |
|
| 32 |
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"]
|