Sandhya-2025 commited on
Commit
f470ec0
·
verified ·
1 Parent(s): 724dd8f

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -63,7 +63,7 @@ input_data = pd.DataFrame([{
63
 
64
  # Make prediction when the "Predict" button is clicked
65
  if st.button("Predict"):
66
- response = requests.post("https://SuperKartRevenuePredictionBackend.Sandhya-2025.hf.space/v1/salesRevenue", json=input_data.to_dict(orient='records')[0]) # Send data to Flask API
67
  if response.status_code == 200:
68
  prediction = response.json()['Predicted Price (in dollars)']
69
  st.success(f"Predicted Rental Price (in dollars): {prediction}")
 
63
 
64
  # Make prediction when the "Predict" button is clicked
65
  if st.button("Predict"):
66
+ response = requests.post("https://sandhya-2025-superkartrevenuepredictionbackend.hf.space/v1/salesRevenue", json=input_data.to_dict(orient='records')[0]) # Send data to Flask API
67
  if response.status_code == 200:
68
  prediction = response.json()['Predicted Price (in dollars)']
69
  st.success(f"Predicted Rental Price (in dollars): {prediction}")