From b079f1f899ef78338662d396b135aec158c358e4 Mon Sep 17 00:00:00 2001 From: liqiang-fit2cloud Date: Wed, 20 Mar 2024 13:07:59 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=B0=9D=E8=AF=95=E5=8E=BB?= =?UTF-8?q?=E6=8E=89nvidia=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9c3a03af2..4af2b21ca 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,7 +19,7 @@ diskcache = "^5.6.3" pillow = "^10.2.0" filetype = "^1.2.0" chardet = "^5.2.0" -torch = { url = "https://download.pytorch.org/whl/cpu/torch-2.2.1%2Bcpu-cp311-cp311-linux_x86_64.whl", markers = "sys_platform == 'linux'"} +torch = {version = "^2.2.1+cpu", source = "pytorch"} sentence-transformers = "^2.2.2" blinker = "^1.6.3" openai = "^1.13.3" @@ -35,3 +35,12 @@ django-apscheduler = "^0.6.2" [build-system] requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" + +torch = {version = "^2.2.1+cpu", source = "pytorch"} +torchvision = {version = "^0.17.1+cpu", source = "pytorch"} +sentence-transformers = "^2.2.0" + +[[tool.poetry.source]] +name = "pytorch" +url = "https://download.pytorch.org/whl/cpu" +priority = "explicit" \ No newline at end of file