We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0cee25c + 1ae8e0a commit 4afe49aCopy full SHA for 4afe49a
app/Dockerfile
@@ -33,6 +33,9 @@ COPY requirements.txt /app/
33
# Install Python dependencies
34
RUN pip install --no-cache-dir -r requirements.txt
35
36
+# Set the environment variable for the sentence transformers model
37
+ENV SENTENCE_TRANSFORMERS_HOME="/app/sentence-transformers"
38
+
39
# Preload the sentence transformer model to cache
40
RUN python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('all-MiniLM-L6-v2')"
41
0 commit comments