face/app/resources.py

10 lines
289 B
Python

"""Shared application resources (HTTP client, thread pool, etc.)."""
from concurrent.futures import ThreadPoolExecutor
import httpx
# Global shared resources (initialized in app lifespan)
http_client: httpx.AsyncClient | None = None
inference_executor: ThreadPoolExecutor | None = None