Lokiiparihar commited on
Commit
e4f9cbc
·
verified ·
1 Parent(s): 5f14bf6

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. 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: {res.json()['prediction']:.2f} units")
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: