manasranjanpani commited on
Commit
b591c22
·
verified ·
1 Parent(s): a9026ba

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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("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")
 
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")