Update app.py
Browse files
app.py
CHANGED
|
@@ -128,9 +128,10 @@ def main():
|
|
| 128 |
|
| 129 |
def health_check():
|
| 130 |
"""Simple health check endpoint that returns JSON"""
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
st.
|
|
|
|
| 134 |
return True
|
| 135 |
return False
|
| 136 |
|
|
|
|
| 128 |
|
| 129 |
def health_check():
|
| 130 |
"""Simple health check endpoint that returns JSON"""
|
| 131 |
+
params = st.experimental_get_query_params()
|
| 132 |
+
if 'health' in params and params['health'][0] == 'true':
|
| 133 |
+
st.write('{"status": "OK"}')
|
| 134 |
+
st.cache_data.clear() # Clear cache to ensure fresh state
|
| 135 |
return True
|
| 136 |
return False
|
| 137 |
|