Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +1 -1
src/streamlit_app.py
CHANGED
|
@@ -53,7 +53,7 @@ if st.button("Predict Sales"):
|
|
| 53 |
)
|
| 54 |
if response.status_code == 200:
|
| 55 |
prediction = response.json().get("prediction", "N/A")
|
| 56 |
-
st.success(f"✅ Predicted Sales: {
|
| 57 |
else:
|
| 58 |
st.error(f"❌ API Error: {response.status_code}")
|
| 59 |
except Exception as e:
|
|
|
|
| 53 |
)
|
| 54 |
if response.status_code == 200:
|
| 55 |
prediction = response.json().get("prediction", "N/A")
|
| 56 |
+
st.success(f"✅ Predicted Sales: {prediction .json()['prediction']:.2f} units")
|
| 57 |
else:
|
| 58 |
st.error(f"❌ API Error: {response.status_code}")
|
| 59 |
except Exception as e:
|