File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 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 && \
2525 pip install poetry --break-system-packages && \
2626 poetry config virtualenvs.create false && \
2727 . /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 && \
2929 poetry install
3030
3131FROM 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"
1818pillow = " ^10.2.0"
1919filetype = " ^1.2.0"
2020chardet = " ^5.2.0"
21- torch = { version = " ^2.2.1+cpu " , source = " pytorch " }
21+ torch = " ^2.2.1"
2222sentence-transformers = " ^2.2.2"
2323blinker = " ^1.6.3"
2424openai = " ^1.13.3"
You can’t perform that action at this time.
0 commit comments