From 2ab95eb2c02609637798208dc1c9851c12863146 Mon Sep 17 00:00:00 2001 From: Abi Raja Date: Mon, 8 Jan 2024 09:35:02 -0800 Subject: [PATCH] upgrade uvicorn dependency and add a backend start python script --- backend/poetry.lock | 8 ++++---- backend/pyproject.toml | 2 +- backend/start.py | 4 ++++ 3 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 backend/start.py diff --git a/backend/poetry.lock b/backend/poetry.lock index 84b3763..fbd0691 100644 --- a/backend/poetry.lock +++ b/backend/poetry.lock @@ -444,14 +444,14 @@ files = [ [[package]] name = "uvicorn" -version = "0.24.0.post1" +version = "0.25.0" description = "The lightning-fast ASGI server." category = "main" optional = false python-versions = ">=3.8" files = [ - {file = "uvicorn-0.24.0.post1-py3-none-any.whl", hash = "sha256:7c84fea70c619d4a710153482c0d230929af7bcf76c7bfa6de151f0a3a80121e"}, - {file = "uvicorn-0.24.0.post1.tar.gz", hash = "sha256:09c8e5a79dc466bdf28dead50093957db184de356fcdc48697bad3bde4c2588e"}, + {file = "uvicorn-0.25.0-py3-none-any.whl", hash = "sha256:ce107f5d9bd02b4636001a77a4e74aab5e1e2b146868ebbad565237145af444c"}, + {file = "uvicorn-0.25.0.tar.gz", hash = "sha256:6dddbad1d7ee0f5140aba5ec138ddc9612c5109399903828b4874c9937f009c2"}, ] [package.dependencies] @@ -547,4 +547,4 @@ files = [ [metadata] lock-version = "2.0" python-versions = "^3.10" -content-hash = "c31ed2a1ce006749d6f34d8d6aebcbc58d306b9f8925b40cc35972a74979e5c7" +content-hash = "92aaa379ec66ff6146122266c895f277835b23254e59c5ae21f0d0cae87d3a11" diff --git a/backend/pyproject.toml b/backend/pyproject.toml index 405e412..216a020 100644 --- a/backend/pyproject.toml +++ b/backend/pyproject.toml @@ -8,7 +8,7 @@ license = "MIT" [tool.poetry.dependencies] python = "^3.10" fastapi = "^0.95.0" -uvicorn = "^0.24.0.post1" +uvicorn = "^0.25.0" websockets = "^12.0" openai = "^1.2.4" python-dotenv = "^1.0.0" diff --git a/backend/start.py b/backend/start.py new file mode 100644 index 0000000..a126468 --- /dev/null +++ b/backend/start.py @@ -0,0 +1,4 @@ +import uvicorn + +if __name__ == "__main__": + uvicorn.run("main:app", port=7001, reload=True)