LogicGoInfotechSpaces commited on
Commit
ce0dc9e
·
1 Parent(s): c66163e

fix: pin huggingface-hub==0.14.1 and diffusers==0.23.0 to restore cached_download

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -34,8 +34,10 @@ RUN python -m pip install --upgrade pip && \
34
  python -m pip install --index-url https://download.pytorch.org/whl/cpu torch torchvision torchaudio --upgrade --force-reinstall && \
35
  # Ensure xformers is not installed
36
  python -m pip uninstall -y xformers || true && \
37
- # Speed up and lower RAM during model load
38
- python -m pip install accelerate
 
 
39
 
40
  EXPOSE 7860
41
 
 
34
  python -m pip install --index-url https://download.pytorch.org/whl/cpu torch torchvision torchaudio --upgrade --force-reinstall && \
35
  # Ensure xformers is not installed
36
  python -m pip uninstall -y xformers || true && \
37
+ # Speed up and lower RAM during model load (avoid upgrading hub)
38
+ python -m pip install --no-deps accelerate && \
39
+ # Ensure compatible hub version for cached_download used by code
40
+ python -m pip install --upgrade --force-reinstall "huggingface-hub==0.14.1" "diffusers==0.23.0"
41
 
42
  EXPOSE 7860
43