Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -41,6 +41,14 @@ if st.button("Predict"):
|
|
| 41 |
else:
|
| 42 |
st.error("Error making prediction.")
|
| 43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
# Section for batch prediction
|
| 45 |
st.subheader("Batch Prediction")
|
| 46 |
|
|
|
|
| 41 |
else:
|
| 42 |
st.error("Error making prediction.")
|
| 43 |
|
| 44 |
+
# Make Api Check
|
| 45 |
+
if st.button("Check API Health"):
|
| 46 |
+
response = requests.get("https://RPeltier/RentalPricePredictionBackendV2.hf.space/")
|
| 47 |
+
if response.status_code == 200:
|
| 48 |
+
st.success("API is healthy!")
|
| 49 |
+
else:
|
| 50 |
+
st.error("API is not healthy.")
|
| 51 |
+
|
| 52 |
# Section for batch prediction
|
| 53 |
st.subheader("Batch Prediction")
|
| 54 |
|