diff --git a/main.py b/main.py index 8e80b6dc..79629da2 100644 --- a/main.py +++ b/main.py @@ -56,6 +56,11 @@ def get_session(): app = FastAPI() +# Ensure the app listens on the correct port +if __name__ == "__main__": + import uvicorn + uvicorn.run(app, host="0.0.0.0", port=int(os.getenv("PORT", 8000))) + app.add_middleware( CORSMiddleware, allow_origins=["*"], # Allow all origins diff --git a/requirements.txt b/requirements.txt index 6c71807d..7bdd04b9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,7 +12,8 @@ opencv-python Pylette mediapipe imutils -fastapi +fastapi[all] uvicorn sqlmodel gunicorn +SQLAlchemy \ No newline at end of file diff --git a/requirements2.txt b/requirements2.txt new file mode 100644 index 00000000..d4d483cb Binary files /dev/null and b/requirements2.txt differ