RedRooster99 commited on
Commit
6592c8a
·
verified ·
1 Parent(s): f21ea24

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -34,7 +34,7 @@ input_data = pd.DataFrame([{
34
 
35
  # Make prediction when the "Predict" button is clicked
36
  if st.button("Predict"):
37
- response = requests.post("https://RedRooster99-projectfrontend.hf.space/v1/rental", json=input_data.to_dict(orient='records')[0]) # Send data to Flask API
38
  if response.status_code == 200:
39
  prediction = response.json()['Predicted Price']
40
  st.success(f"Superkart Price: {prediction}")
 
34
 
35
  # Make prediction when the "Predict" button is clicked
36
  if st.button("Predict"):
37
+ response = requests.post("https://RedRooster99-projectfrontend.hf.space/v1/superkart", json=input_data.to_dict(orient='records')[0]) # Send data to Flask API
38
  if response.status_code == 200:
39
  prediction = response.json()['Predicted Price']
40
  st.success(f"Superkart Price: {prediction}")