MicroCore-Labs commited on
Commit
96a41da
·
1 Parent(s): ada288c

fix: match original Dockerfile + pin huggingface_hub==0.19.4 in requirements.txt

Browse files

- Revert Dockerfile to original (bare pip installs, matching zenotaiz original)
- Only pin huggingface_hub==0.19.4 in requirements.txt for cached_download compat
- HF Spaces Docker SDK processes requirements.txt after Dockerfile build

Files changed (2) hide show
  1. Dockerfile +2 -2
  2. requirements.txt +5 -8
Dockerfile CHANGED
@@ -10,8 +10,8 @@ RUN apt-get update && apt-get install -y libgl1 libglib2.0-0 && rm -rf /var/lib/
10
  # Install CPU-only torch first (prevents 5GB GPU version download)
11
  RUN pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
12
 
13
- # Install rest (compatible modern versions)
14
- RUN pip install "diffusers>=0.30.0,<0.31" transformers==4.40.0 accelerate==0.29.0 gradio==4.38.0 Pillow==10.2.0 safetensors==0.4.2 "huggingface_hub>=0.22" sentencepiece protobuf
15
 
16
  COPY . /app
17
 
 
10
  # Install CPU-only torch first (prevents 5GB GPU version download)
11
  RUN pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
12
 
13
+ # Install rest
14
+ RUN pip install diffusers transformers accelerate gradio Pillow
15
 
16
  COPY . /app
17
 
requirements.txt CHANGED
@@ -1,11 +1,8 @@
1
- torch==2.1.2
2
- transformers==4.37.2
3
- diffusers==0.25.1
4
- accelerate==0.26.1
5
- Pillow==10.2.0
6
- safetensors==0.4.2
7
- numpy==1.24.4
8
- gradio==4.19.2
9
  spaces
 
 
 
 
10
  sentencepiece
11
  protobuf
 
 
 
 
 
 
 
 
 
 
1
  spaces
2
+ diffusers
3
+ transformers
4
+ accelerate
5
+ torch
6
  sentencepiece
7
  protobuf
8
+ huggingface_hub==0.19.4