Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -143,11 +143,11 @@ if st.button("Check API Status"):
|
|
| 143 |
try:
|
| 144 |
response = requests.get("https://manasranjanpani-extraalearncustomerpredictionbackend.hf.space/ping")
|
| 145 |
if response.status_code == 200:
|
| 146 |
-
st.success("
|
| 147 |
else:
|
| 148 |
-
st.error("
|
| 149 |
except:
|
| 150 |
-
st.error("
|
| 151 |
|
| 152 |
# Add sample CSV download
|
| 153 |
st.subheader("Sample CSV for Batch Prediction")
|
|
|
|
| 143 |
try:
|
| 144 |
response = requests.get("https://manasranjanpani-extraalearncustomerpredictionbackend.hf.space/ping")
|
| 145 |
if response.status_code == 200:
|
| 146 |
+
st.success("API is running and responsive")
|
| 147 |
else:
|
| 148 |
+
st.error("API is not responding properly")
|
| 149 |
except:
|
| 150 |
+
st.error("Cannot connect to API")
|
| 151 |
|
| 152 |
# Add sample CSV download
|
| 153 |
st.subheader("Sample CSV for Batch Prediction")
|