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