Spaces:
Sleeping
Sleeping
fix:
Browse files
main.py
CHANGED
|
@@ -3,18 +3,16 @@ from fastapi import FastAPI
|
|
| 3 |
from ai.depth.depth_anything import DepthAnything
|
| 4 |
from ai.detectors.yolo_detector import YOLO_Detector
|
| 5 |
from config.settings import AppConfig
|
| 6 |
-
from
|
| 7 |
from infra.system_metrics import log_system_metrics
|
| 8 |
-
from
|
| 9 |
-
from
|
| 10 |
-
from
|
| 11 |
from contextlib import asynccontextmanager
|
| 12 |
from infra.logger_structlog import StructLogger
|
| 13 |
import asyncio
|
| 14 |
import mlflow
|
| 15 |
-
from backend.utils.experiment import log_config
|
| 16 |
import torch
|
| 17 |
-
from redis.asyncio import Redis
|
| 18 |
from huggingface_hub import hf_hub_download
|
| 19 |
import redis.asyncio as aioredis
|
| 20 |
|
|
|
|
| 3 |
from ai.depth.depth_anything import DepthAnything
|
| 4 |
from ai.detectors.yolo_detector import YOLO_Detector
|
| 5 |
from config.settings import AppConfig
|
| 6 |
+
from api.routers.metrics import metrics_asgi_app
|
| 7 |
from infra.system_metrics import log_system_metrics
|
| 8 |
+
from api.routers import camera_stream
|
| 9 |
+
from api.routers import dashboard_stream
|
| 10 |
+
from api.routers import health
|
| 11 |
from contextlib import asynccontextmanager
|
| 12 |
from infra.logger_structlog import StructLogger
|
| 13 |
import asyncio
|
| 14 |
import mlflow
|
|
|
|
| 15 |
import torch
|
|
|
|
| 16 |
from huggingface_hub import hf_hub_download
|
| 17 |
import redis.asyncio as aioredis
|
| 18 |
|