File tree Expand file tree Collapse file tree 3 files changed +1
-3
lines changed Expand file tree Collapse file tree 3 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ COPY requirements.txt /app/
34
34
RUN pip install --no-cache-dir -r requirements.txt
35
35
36
36
# Set the environment variable for the sentence transformers model
37
- ENV SENTENCE_TRANSFORMERS_HOME="/app/sentence-transformers "
37
+ ENV SENTENCE_TRANSFORMERS_HOME="/root/.cache/sentence_transformers "
38
38
39
39
# Preload the sentence transformer model to cache
40
40
RUN python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('all-MiniLM-L6-v2')"
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ services:
16
16
SEGMENT_WRITE_KEY : ${SEGMENT_WRITE_KEY} # Set your Segment write key here or in the .env file
17
17
SESSION_COOKIE_SECURE : 0
18
18
OPENAI_BASE_URL : " http://llm:5051/api/v1"
19
- SENTENCE_TRANSFORMERS_HOME : /app/sentence-transformers
20
19
volumes :
21
20
- type : bind
22
21
source : ./app
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ services:
26
26
INTERCOM_TOKEN :
27
27
INTERCOM_ADMIN_ID :
28
28
REDIS_URL : redis://redis:6379/0
29
- SENTENCE_TRANSFORMERS_HOME : /app/sentence-transformers
30
29
deploy :
31
30
resources :
32
31
reservations :
You can’t perform that action at this time.
0 commit comments