Spaces:
Sleeping
Sleeping
Update status_check.py
Browse files- status_check.py +8 -2
status_check.py
CHANGED
|
@@ -87,9 +87,15 @@ def wake_up_endpoint(
|
|
| 87 |
|
| 88 |
def run_status_checks():
|
| 89 |
"""Run all status checks and return endpoint URI if successful"""
|
| 90 |
-
#ui = StatusUI("Content Agent Status Checks")
|
| 91 |
ui = StatusUI()
|
| 92 |
-
ui.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 93 |
ui.append("Starting prechecks...")
|
| 94 |
ui.append("Checking endpoint..")
|
| 95 |
endpoint_uri = huggingface_model_uri() # Get the URI for the endpoint
|
|
|
|
| 87 |
|
| 88 |
def run_status_checks():
|
| 89 |
"""Run all status checks and return endpoint URI if successful"""
|
|
|
|
| 90 |
ui = StatusUI()
|
| 91 |
+
#ui.launch()
|
| 92 |
+
# Then launch it (non-blocking)
|
| 93 |
+
ui.launch(inbrowser=False, prevent_thread_lock=True)
|
| 94 |
+
|
| 95 |
+
# Now send messages
|
| 96 |
+
ui.append("Starting prechecks...")
|
| 97 |
+
time.sleep(0.5) # Brief pause for UI to initialize
|
| 98 |
+
ui.append("Checking endpoint..")
|
| 99 |
ui.append("Starting prechecks...")
|
| 100 |
ui.append("Checking endpoint..")
|
| 101 |
endpoint_uri = huggingface_model_uri() # Get the URI for the endpoint
|