nlauchande commited on
Commit
bfa1149
·
verified ·
1 Parent(s): 7f34197

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -79,7 +79,7 @@ input_data = pd.DataFrame([{
79
  if st.button("Predict"):
80
  response = requests.post("https://nlauchande-ForecastBackend2.hf.space/v1/predict", json=input_data.to_dict(orient='records')[0]) # Send data to Flask API
81
  if response.status_code == 200:
82
- prediction = response.json()['Predicted Sales']
83
  st.success(f"Predicted Sales: {prediction}")
84
  else:
85
  st.error("Error making prediction.")
 
79
  if st.button("Predict"):
80
  response = requests.post("https://nlauchande-ForecastBackend2.hf.space/v1/predict", json=input_data.to_dict(orient='records')[0]) # Send data to Flask API
81
  if response.status_code == 200:
82
+ prediction = response.json()['Predicted Price (in dollars)']
83
  st.success(f"Predicted Sales: {prediction}")
84
  else:
85
  st.error("Error making prediction.")