mirror of
https://github.com/open-webui/open-webui
synced 2024-11-22 16:22:44 +00:00
docker: pre-download transformer weights
This commit is contained in:
parent
bf43415d12
commit
31bd6dfc15
@ -28,6 +28,7 @@ WORKDIR /app/backend
|
|||||||
|
|
||||||
COPY ./backend/requirements.txt ./requirements.txt
|
COPY ./backend/requirements.txt ./requirements.txt
|
||||||
RUN pip3 install -r requirements.txt
|
RUN pip3 install -r requirements.txt
|
||||||
|
RUN python -c "from sentence_transformers import SentenceTransformer; model = SentenceTransformer('all-MiniLM-L6-v2')"
|
||||||
|
|
||||||
COPY ./backend .
|
COPY ./backend .
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user