Skip to content

Commit

Permalink
Adding main file
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhara committed Feb 21, 2024
1 parent a8f8d39 commit 12bdb7e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from concurrent.futures import ThreadPoolExecutor
from API._init_ import run_fastapi_app
from FaceRec.app.main._init_ import run_flask

# Multithreading used to start both FastAPI and Flask apps at the same time.
if __name__ == '__main__':
with ThreadPoolExecutor(max_workers=2) as executor:
executor.submit(run_flask)
executor.submit(run_fastapi_app)

0 comments on commit 12bdb7e

Please sign in to comment.