Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore API workers #570

Merged
merged 12 commits into from
Feb 7, 2025
Prev Previous commit
Run pre-commit
  • Loading branch information
dbobrenko committed Feb 6, 2025
commit f07d1e30b685acbe2f45cabdc39ca0ebff2b0d36
2 changes: 2 additions & 0 deletions validator_api/api.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import asyncio
import contextlib

import uvicorn
from fastapi import FastAPI

Expand All @@ -24,6 +25,7 @@ async def lifespan(app: FastAPI):
except asyncio.CancelledError:
pass


# Create the FastAPI app with the lifespan handler.
app = FastAPI(lifespan=lifespan)
app.include_router(gpt_router, tags=["GPT Endpoints"])
Expand Down