Spaces:
Running on Zero

ats-engine / app /__init__.py
aseemlais's picture
Backend Modernization: SLM extraction pipeline (Phases 1-5) with async queue, Supabase caching, and self-healing fallback.
ca82a2f
Raw History Blame Contribute Delete
465 Bytes
# Expose ASGI FastAPI application so `app:app` works seamlessly.
# Lazy import so that importing sub-modules (e.g. app.services.*) in unit tests
# does NOT eagerly initialise ATSScreeningAdapter / EmbeddingService, which
# would hang in sandboxed environments with no network access.
def __getattr__(name: str):
if name == "app":
from app.server import app as _app
return _app
raise AttributeError(f"module 'app' has no attribute {name!r}")