Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
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://
|
| 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}")
|