hysts HF staff commited on
Commit
2f4649a
1 Parent(s): c6560e0
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -40,7 +40,8 @@ ARG PYTHON_VERSION=3.10.13
40
  RUN pyenv install ${PYTHON_VERSION} && \
41
  pyenv global ${PYTHON_VERSION} && \
42
  pyenv rehash && \
43
- pip install --no-cache-dir -U pip setuptools wheel
 
44
 
45
  COPY --chown=1000 . ${HOME}/app
46
  RUN pip install -r ${HOME}/app/requirements.txt && \
@@ -50,9 +51,12 @@ RUN pip install -r ${HOME}/app/requirements.txt && \
50
 
51
  ENV PYTHONPATH=${HOME}/app \
52
  PYTHONUNBUFFERED=1 \
 
53
  GRADIO_ALLOW_FLAGGING=never \
54
  GRADIO_NUM_PORTS=1 \
55
  GRADIO_SERVER_NAME=0.0.0.0 \
56
  GRADIO_THEME=huggingface \
 
 
57
  SYSTEM=spaces
58
  CMD ["python", "app.py"]
 
40
  RUN pyenv install ${PYTHON_VERSION} && \
41
  pyenv global ${PYTHON_VERSION} && \
42
  pyenv rehash && \
43
+ pip install --no-cache-dir -U pip setuptools wheel && \
44
+ pip install "huggingface-hub==0.19.3" "hf-transfer==0.1.4"
45
 
46
  COPY --chown=1000 . ${HOME}/app
47
  RUN pip install -r ${HOME}/app/requirements.txt && \
 
51
 
52
  ENV PYTHONPATH=${HOME}/app \
53
  PYTHONUNBUFFERED=1 \
54
+ HF_HUB_ENABLE_HF_TRANSFER=1 \
55
  GRADIO_ALLOW_FLAGGING=never \
56
  GRADIO_NUM_PORTS=1 \
57
  GRADIO_SERVER_NAME=0.0.0.0 \
58
  GRADIO_THEME=huggingface \
59
+ TQDM_POSITION=-1 \
60
+ TQDM_MININTERVAL=1 \
61
  SYSTEM=spaces
62
  CMD ["python", "app.py"]