Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -53,8 +53,9 @@ def wake_up_endpoint(endpoint_uri, max_wait=30):
|
|
53 |
while time.time() - start < max_wait:
|
54 |
try:
|
55 |
print("Pinging endpoint...")
|
|
|
56 |
response = requests.post(endpoint_uri, json=payload, timeout=5)
|
57 |
-
|
58 |
if response.ok:
|
59 |
print("✅ Endpoint is awake.")
|
60 |
return True
|
|
|
53 |
while time.time() - start < max_wait:
|
54 |
try:
|
55 |
print("Pinging endpoint...")
|
56 |
+
print(endpoint_uri)
|
57 |
response = requests.post(endpoint_uri, json=payload, timeout=5)
|
58 |
+
|
59 |
if response.ok:
|
60 |
print("✅ Endpoint is awake.")
|
61 |
return True
|