yetessam commited on
Commit
a6ef072
·
verified ·
1 Parent(s): 4bfe53e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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