Spaces:
Runtime error
Runtime error
Update src/main.py
Browse files- src/main.py +1 -1
src/main.py
CHANGED
@@ -163,7 +163,7 @@ def wake_up_endpoint(url):
|
|
163 |
).status_code != 200:
|
164 |
time.sleep(2)
|
165 |
n_loop += 1
|
166 |
-
if n_loop >
|
167 |
raise TimeoutError("TEI endpoint is unavailable")
|
168 |
logger.info("TEI endpoint is up")
|
169 |
|
|
|
163 |
).status_code != 200:
|
164 |
time.sleep(2)
|
165 |
n_loop += 1
|
166 |
+
if n_loop > 30:
|
167 |
raise TimeoutError("TEI endpoint is unavailable")
|
168 |
logger.info("TEI endpoint is up")
|
169 |
|