singhdevendra58 commited on
Commit
828b3d4
·
verified ·
1 Parent(s): b251401

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -0
Dockerfile CHANGED
@@ -22,6 +22,8 @@ COPY src/ ./src/
22
 
23
  RUN pip3 install -r requirements.txt
24
  RUN python3 -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('setu4993/LaBSE')"
 
 
25
 
26
  # Download the model at build time (preload it into cache)
27
  RUN python3 -c "from transformers import pipeline; pipeline('question-answering', model='deepset/xlm-roberta-base-squad2')"
 
22
 
23
  RUN pip3 install -r requirements.txt
24
  RUN python3 -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('setu4993/LaBSE')"
25
+ # Preload sentence-transformers model into cache
26
+ RUN python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('intfloat/multilingual-e5-small')"
27
 
28
  # Download the model at build time (preload it into cache)
29
  RUN python3 -c "from transformers import pipeline; pipeline('question-answering', model='deepset/xlm-roberta-base-squad2')"