Spaces:
Running
Running
ok
Browse files- app/api/server.py +1 -1
- app/config.py +1 -0
app/api/server.py
CHANGED
|
@@ -17,7 +17,7 @@ _settings = get_settings()
|
|
| 17 |
|
| 18 |
async def _self_ping():
|
| 19 |
import httpx
|
| 20 |
-
health_url =
|
| 21 |
while True:
|
| 22 |
try:
|
| 23 |
async with httpx.AsyncClient(timeout=30.0) as client:
|
|
|
|
| 17 |
|
| 18 |
async def _self_ping():
|
| 19 |
import httpx
|
| 20 |
+
health_url = _settings.self_ping_url
|
| 21 |
while True:
|
| 22 |
try:
|
| 23 |
async with httpx.AsyncClient(timeout=30.0) as client:
|
app/config.py
CHANGED
|
@@ -34,6 +34,7 @@ class Settings(BaseSettings):
|
|
| 34 |
ocr_rec_cuda: bool = False
|
| 35 |
ocr_rec_dml: bool = False
|
| 36 |
|
|
|
|
| 37 |
spacy_model: str = "en_core_web_sm"
|
| 38 |
|
| 39 |
@property
|
|
|
|
| 34 |
ocr_rec_cuda: bool = False
|
| 35 |
ocr_rec_dml: bool = False
|
| 36 |
|
| 37 |
+
self_ping_url: str = "https://aetherbase-llm-ready-data.hf.space/ping"
|
| 38 |
spacy_model: str = "en_core_web_sm"
|
| 39 |
|
| 40 |
@property
|