Skip to content

Commit

Permalink
🚀 changed to uvicorn[standard]
Browse files Browse the repository at this point in the history
  • Loading branch information
jadewang26 committed Dec 7, 2024
1 parent dea887b commit 65037d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ def get_session():

app = FastAPI()

print(f"Running on port: {os.getenv('PORT', 8000)}")

# Ensure the app listens on the correct port
if __name__ == '__main__':
uvicorn.run('main:app', host='0.0.0.0', port=8000)
Expand Down
5 changes: 3 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ Pylette
mediapipe
imutils
fastapi[all]
uvicorn
uvicorn[standard]
sqlmodel
gunicorn
SQLAlchemy
SQLAlchemy
pydantic

0 comments on commit 65037d3

Please sign in to comment.