Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,7 +44,7 @@ def initialize_agent(endpoint_uri: str):
|
|
| 44 |
def main():
|
| 45 |
uri = resolve_endpoint()
|
| 46 |
if not uri:
|
| 47 |
-
print("❌ Endpoint not ready: no URI configured.")
|
| 48 |
sys.exit(1) # exit with non-zero status for clarity
|
| 49 |
ok, msg = is_endpoint_healthy(uri)
|
| 50 |
if not ok:
|
|
|
|
| 44 |
def main():
|
| 45 |
uri = resolve_endpoint()
|
| 46 |
if not uri:
|
| 47 |
+
print("❌ Endpoint not ready: no URI configured. Ensure that the HF_ENDPOINT_URI secret has been defined in the current Space.")
|
| 48 |
sys.exit(1) # exit with non-zero status for clarity
|
| 49 |
ok, msg = is_endpoint_healthy(uri)
|
| 50 |
if not ok:
|