File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ RUN python3 -m venv /opt/py3 && \
25
25
pip install poetry --break-system-packages && \
26
26
poetry config virtualenvs.create false && \
27
27
. /opt/py3/bin/activate && \
28
- if [ "$(uname -m)" ! = "x86_64" ]; then sed -i '/^torch/d ' pyproject.toml; fi && \
28
+ if [ "$(uname -m)" = "x86_64" ]; then sed -i 's /^torch.*/torch = {version = "^2.2.1+cpu", source = "pytorch"}/g ' pyproject.toml; fi && \
29
29
poetry install
30
30
31
31
FROM ghcr.io/1panel-dev/maxkb-python-pg:python3.11-pg15.6
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ diskcache = "^5.6.3"
18
18
pillow = " ^10.2.0"
19
19
filetype = " ^1.2.0"
20
20
chardet = " ^5.2.0"
21
- torch = { version = " ^2.2.1+cpu " , source = " pytorch " }
21
+ torch = " ^2.2.1"
22
22
sentence-transformers = " ^2.2.2"
23
23
blinker = " ^1.6.3"
24
24
openai = " ^1.13.3"
You can’t perform that action at this time.
0 commit comments