Spaces:
Runtime error
Runtime error
Update scripts/init_db.py
Browse files- scripts/init_db.py +1 -1
scripts/init_db.py
CHANGED
|
@@ -4,7 +4,7 @@ import os, time, requests
|
|
| 4 |
port = int(os.getenv("PORT", "7860"))
|
| 5 |
base = f"http://127.0.0.1:{port}"
|
| 6 |
|
| 7 |
-
for
|
| 8 |
try:
|
| 9 |
r = requests.get(f"{base}/healthz", timeout=1)
|
| 10 |
if r.status_code == 200:
|
|
|
|
| 4 |
port = int(os.getenv("PORT", "7860"))
|
| 5 |
base = f"http://127.0.0.1:{port}"
|
| 6 |
|
| 7 |
+
for _ in range(60):
|
| 8 |
try:
|
| 9 |
r = requests.get(f"{base}/healthz", timeout=1)
|
| 10 |
if r.status_code == 200:
|