Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -39,6 +39,6 @@ if st.button("Predict"):
|
|
| 39 |
response = requests.post("https://RubeenaNouman-PredictionBackend.hf.space/v1/pred", json=input_data.to_dict(orient='records')[0]) # Send data to Flask API
|
| 40 |
if response.status_code == 200:
|
| 41 |
prediction = response.json()['Predicted Price (in dollars)']
|
| 42 |
-
st.success(f"Predicted
|
| 43 |
else:
|
| 44 |
st.error("Error making prediction.")
|
|
|
|
| 39 |
response = requests.post("https://RubeenaNouman-PredictionBackend.hf.space/v1/pred", json=input_data.to_dict(orient='records')[0]) # Send data to Flask API
|
| 40 |
if response.status_code == 200:
|
| 41 |
prediction = response.json()['Predicted Price (in dollars)']
|
| 42 |
+
st.success(f"Predicted Sales Price (in dollars): {prediction}")
|
| 43 |
else:
|
| 44 |
st.error("Error making prediction.")
|