Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -36,7 +36,7 @@ input_data = pd.DataFrame([{
|
|
| 36 |
|
| 37 |
# Make prediction when the "Predict" button is clicked
|
| 38 |
if st.button("Predict"):
|
| 39 |
-
response = requests.post("https://nishantpathak461-
|
| 40 |
|
| 41 |
if response.status_code == 200:
|
| 42 |
prediction = response.json()['predicted_sales']
|
|
|
|
| 36 |
|
| 37 |
# Make prediction when the "Predict" button is clicked
|
| 38 |
if st.button("Predict"):
|
| 39 |
+
response = requests.post("https://nishantpathak461-Backend_Stores.hf.space/v1/sales", json=input_data.to_dict(orient='records')[0])
|
| 40 |
|
| 41 |
if response.status_code == 200:
|
| 42 |
prediction = response.json()['predicted_sales']
|