Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,10 +45,9 @@ def main():
|
|
| 45 |
uri = resolve_endpoint()
|
| 46 |
ok, msg = is_endpoint_healthy(uri)
|
| 47 |
if not ok:
|
| 48 |
-
|
| 49 |
|
| 50 |
-
|
| 51 |
-
if ok:
|
| 52 |
# Initialize and run the agent
|
| 53 |
#agent = initialize_agent(endpoint_uri)
|
| 54 |
# Create an instance of the ContentAgentUI class
|
|
|
|
| 45 |
uri = resolve_endpoint()
|
| 46 |
ok, msg = is_endpoint_healthy(uri)
|
| 47 |
if not ok:
|
| 48 |
+
print f"Endpoint not ready: {msg}"
|
| 49 |
|
| 50 |
+
else:
|
|
|
|
| 51 |
# Initialize and run the agent
|
| 52 |
#agent = initialize_agent(endpoint_uri)
|
| 53 |
# Create an instance of the ContentAgentUI class
|