A commited on
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -40,7 +40,7 @@ input_data = pd.DataFrame([{
|
|
| 40 |
'Store_Establishment_Year': store_establishment_year
|
| 41 |
}])
|
| 42 |
|
| 43 |
-
Make prediction when the "Predict" button is clicked
|
| 44 |
if st.button("Predict"):
|
| 45 |
response = requests.post("https://Swetha2031-SuperKartSalesPredictionBackend.hf.space/v1/salestotal", json=input_data.to_dict(orient='records')[0])
|
| 46 |
if response.status_code == 200:
|
|
|
|
| 40 |
'Store_Establishment_Year': store_establishment_year
|
| 41 |
}])
|
| 42 |
|
| 43 |
+
# Make prediction when the "Predict" button is clicked
|
| 44 |
if st.button("Predict"):
|
| 45 |
response = requests.post("https://Swetha2031-SuperKartSalesPredictionBackend.hf.space/v1/salestotal", json=input_data.to_dict(orient='records')[0])
|
| 46 |
if response.status_code == 200:
|