Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /InferiaAI_InferiaLLM /src /api_gateway /main.py
| import uvicorn | |
| from api_gateway.config import settings | |
| def start_api(): | |
| """Start the API Gateway Service.""" | |
| uvicorn_kwargs = dict( | |
| host=settings.host, | |
| port=settings.port, | |
| reload=settings.reload, | |
| workers=settings.workers, | |
| log_level=settings.log_level.lower(), | |
| proxy_headers=settings.proxy_headers, | |
| ) | |
| if settings.forwarded_allow_ips is not None: | |
| uvicorn_kwargs["forwarded_allow_ips"] = settings.forwarded_allow_ips | |
| uvicorn.run("api_gateway.app:app", **uvicorn_kwargs) | |
| if __name__ == "__main__": | |
| start_api() | |
Xet Storage Details
- Size:
- 590 Bytes
- Xet hash:
- 56d1a0c991f1a63043251d8c5b8291ac55f8b801464eb5ddf6dda0c49c768cd7
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.