Spaces:
Build error
Build error
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +1 -1
src/streamlit_app.py
CHANGED
|
@@ -41,7 +41,7 @@ if st.button("Predict Sales"):
|
|
| 41 |
|
| 42 |
# Call the backend API
|
| 43 |
try:
|
| 44 |
-
response = requests.post("https://dev02chandan
|
| 45 |
result = response.json()
|
| 46 |
if "predicted_sales" in result:
|
| 47 |
st.success(f"📈 Predicted Sales: ₹{result['predicted_sales']}")
|
|
|
|
| 41 |
|
| 42 |
# Call the backend API
|
| 43 |
try:
|
| 44 |
+
response = requests.post("https://dev02chandan-superkart-sales-api.hf.space/predict", json=input_data)
|
| 45 |
result = response.json()
|
| 46 |
if "predicted_sales" in result:
|
| 47 |
st.success(f"📈 Predicted Sales: ₹{result['predicted_sales']}")
|