Benjamin Bossan commited on
Commit
e160804
·
1 Parent(s): e364c3d

Try fixing TRANSFORMER_CACHE issue

Browse files
Files changed (2) hide show
  1. Dockerfile +0 -2
  2. README.md +1 -1
Dockerfile CHANGED
@@ -14,6 +14,4 @@ EXPOSE 7860 8080
14
  COPY start.sh .
15
  RUN chmod +x start.sh
16
 
17
- RUN mkdir ./data
18
- ENV TRANSFORMERS_CACHE=./data
19
  CMD ["./start.sh"]
 
14
  COPY start.sh .
15
  RUN chmod +x start.sh
16
 
 
 
17
  CMD ["./start.sh"]
README.md CHANGED
@@ -73,7 +73,7 @@ docker build -t gistillery:latest .
73
  Next run the container:
74
 
75
  ```sh
76
- docker run -p 7860:7860 -p 8080:8080 -e GRADIO_SERVER_NAME=0.0.0.0 -v $HOME/.cache/huggingface/hub:/workspace/data gistillery:latest
77
  ```
78
 
79
  Note that the Hugging Face cache folder is mounted as a docker volume to make use of potentially available local model cache instead of downloading the transformers models each time the container is started. To prevent that, remove the `-v ...` parameter. The database used for storing the results is ephemeral and will be deleted when the docker container is stopped. The backend server is also exposed directly via port 8080 to enable DB backups (see below).
 
73
  Next run the container:
74
 
75
  ```sh
76
+ docker run -p 7860:7860 -p 8080:8080 -e GRADIO_SERVER_NAME=0.0.0.0 -v $HOME/.cache/huggingface/hub:/root/.cache/huggingface/hub gistillery:latest
77
  ```
78
 
79
  Note that the Hugging Face cache folder is mounted as a docker volume to make use of potentially available local model cache instead of downloading the transformers models each time the container is started. To prevent that, remove the `-v ...` parameter. The database used for storing the results is ephemeral and will be deleted when the docker container is stopped. The backend server is also exposed directly via port 8080 to enable DB backups (see below).