arslan-ahmed commited on
Commit
edc39bb
1 Parent(s): 1f6c93b

Revert "Update Dockerfile"

Browse files

This reverts commit ffa01c11d57560b54f948587fddbbd140c31ba3f.

Files changed (1) hide show
  1. Dockerfile +3 -0
Dockerfile CHANGED
@@ -15,5 +15,8 @@ ENV GRADIO_SERVER_NAME=0.0.0.0
15
  # Install any needed packages specified in requirements.txt
16
  # RUN pip install --no-cache-dir -r requirements.txt # already installed in base image
17
 
 
 
 
18
  # Use ENTRYPOINT to allow passing user arguments
19
  ENTRYPOINT ["python", "app.py"]
 
15
  # Install any needed packages specified in requirements.txt
16
  # RUN pip install --no-cache-dir -r requirements.txt # already installed in base image
17
 
18
+ #to be moved to ttyd_base image
19
+ RUN python -c "from sentence_transformers import SentenceTransformer; model = SentenceTransformer('sentence-transformers/all-MiniLM-L6-v2', cache_folder='./tmp/hfEmbModel')"
20
+
21
  # Use ENTRYPOINT to allow passing user arguments
22
  ENTRYPOINT ["python", "app.py"]