You've already forked RekomenciBackend
<type>(scope): <description>
[body] [footer(s)]
This commit is contained in:
@@ -29,6 +29,7 @@ backend = [
|
||||
]
|
||||
ml = [
|
||||
"sentence-transformers>=5.1.2",
|
||||
"prometheus-fastapi-instrumentator>=7.1.0",
|
||||
"torch",
|
||||
]
|
||||
types = [
|
||||
|
||||
@@ -11,6 +11,7 @@ from dishka import AsyncContainer
|
||||
from dishka.integrations.fastapi import setup_dishka
|
||||
from fastapi import FastAPI
|
||||
from fastapi.middleware.cors import CORSMiddleware
|
||||
from prometheus_fastapi_instrumentator import Instrumentator
|
||||
|
||||
from template_project.ml.configuration import load_configuration
|
||||
from template_project.ml.ioc.make import make_ioc
|
||||
@@ -57,6 +58,7 @@ def make_asgi_application(
|
||||
app.include_router(healthcheck.router)
|
||||
app.include_router(embed.router)
|
||||
app.include_router(predict.router)
|
||||
Instrumentator().instrument(app).expose(app)
|
||||
|
||||
setup_dishka(container=ioc, app=app)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user