Skip to content
Snippets Groups Projects
Commit 76a58fcb authored by Antoine Gaudron-Desjardins's avatar Antoine Gaudron-Desjardins
Browse files

uncomment main.py

parent 65f938ca
No related branches found
No related tags found
1 merge request!47Exceptional closure
Pipeline #44398 passed with warnings
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from dotenv import load_dotenv
# from threading import Thread
from threading import Thread
import os
from db import database, models
from routers import *
# from video_capture import handle_cameras
from video_capture import handle_cameras
app = FastAPI(docs_url="/api/docs", openapi_url="/api/openapi.json")
......@@ -30,8 +30,8 @@ app.add_middleware(
async def on_startup():
# Database creation
models.Base.metadata.create_all(bind=database.engine)
# t = Thread(target=handle_cameras)
# t.start()
t = Thread(target=handle_cameras)
t.start()
# Integration of routers
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment