LalithaShiva commited on
Commit
628ebe3
·
verified ·
1 Parent(s): c884674

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -37,7 +37,7 @@ input_data = pd.DataFrame([{
37
 
38
  # Make prediction when the "Predict" button is clicked
39
  if st.button("Predict"):
40
- response = requests.post("https://LalithaShiva-skproject.hf.space/v1/sksales", json=input_data.to_dict(orient='records')[0]) # Send data to Flask API
41
  if response.status_code == 200:
42
  result = response.json()['Predicted Price (in dollars)']
43
  st.success(f"Predicted Rental Price (in dollars): {prediction}")
 
37
 
38
  # Make prediction when the "Predict" button is clicked
39
  if st.button("Predict"):
40
+ response = requests.post("https://LalithaShiva-SalesAnalysisPredictionFrontend.hf.space/v1/sksales", json=input_data.to_dict(orient='records')[0]) # Send data to Flask API
41
  if response.status_code == 200:
42
  result = response.json()['Predicted Price (in dollars)']
43
  st.success(f"Predicted Rental Price (in dollars): {prediction}")