Spaces:
Running
Running
| # Snippet to merge into server.py (reference for push): | |
| # 1) Replace langchain hack block with: | |
| # import core.langchain_compat # noqa: F401 | |
| # 2) After grant_search_service import area add: | |
| # from core.search.grant_search_catalog import apply_search_patches | |
| # apply_search_patches() | |
| # 3) Include routers: | |
| # from endpoints.grants_catalog import router as grants_catalog_router | |
| # from endpoints.grants_admin_import import router as grants_admin_import_router | |
| # app.include_router(grants_catalog_router) | |
| # app.include_router(admin_router, prefix="/api/admin") # grants_admin merged into admin | |
| # 4) lifespan empty DB: await sync_wyszukiwarka_catalog() before sync_grants_to_db | |