yonikremer commited on
Commit
a4a9857
1 Parent(s): 192204f

downloads the available models when the docker file runs

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -16,6 +16,7 @@ ENV TRANSFORMERS_CACHE="/app/my_streamlit_app/.cache/transformers"
16
  ENV TOKENIZERS_PARALLELISM=false
17
 
18
  COPY . /app/my_streamlit_app/
19
- COPY ./.streamlit /app/my_streamlit_app/.streamlit/
 
20
 
21
  CMD ["streamlit", "run", "--server.port", "7860", "--server.enableCORS", "false", "--server.enableXsrfProtection", "false", "--browser.gatherUsageStats", "false", "--theme.base", "dark", "--server.maxUploadSize", "1000", "/app/my_streamlit_app/app.py"]
 
16
  ENV TOKENIZERS_PARALLELISM=false
17
 
18
  COPY . /app/my_streamlit_app/
19
+
20
+ RUN python /app/my_streamlit_app/download_repo.py
21
 
22
  CMD ["streamlit", "run", "--server.port", "7860", "--server.enableCORS", "false", "--server.enableXsrfProtection", "false", "--browser.gatherUsageStats", "false", "--theme.base", "dark", "--server.maxUploadSize", "1000", "/app/my_streamlit_app/app.py"]