jree423 commited on
Commit
5b99d31
·
verified ·
1 Parent(s): c1221ef

Fix: Update Dockerfile and requirements.txt to resolve dependency conflicts

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -1
  2. requirements.txt +3 -2
Dockerfile CHANGED
@@ -17,7 +17,8 @@ RUN apt-get update && apt-get install -y \
17
  # Install Python dependencies
18
  COPY requirements.txt .
19
  RUN pip install --no-cache-dir -r requirements.txt
20
- RUN pip install --no-cache-dir cairosvg
 
21
 
22
  # Create mock diffvg package
23
  RUN mkdir -p /tmp/mock_diffvg/pydiffvg && \
 
17
  # Install Python dependencies
18
  COPY requirements.txt .
19
  RUN pip install --no-cache-dir -r requirements.txt
20
+ # Explicitly install cairosvg with all dependencies
21
+ RUN pip install --no-cache-dir cairosvg==2.7.0 cairocffi cssselect2 defusedxml tinycss2
22
 
23
  # Create mock diffvg package
24
  RUN mkdir -p /tmp/mock_diffvg/pydiffvg && \
requirements.txt CHANGED
@@ -1,5 +1,6 @@
1
- torch>=2.0.0
2
- torchvision>=0.15.1
 
3
  diffusers>=0.15.1
4
  transformers>=4.27.4
5
  accelerate>=0.18.0
 
1
+ # Loosened version constraints to avoid conflicts
2
+ torch>=1.12.0
3
+ torchvision>=0.13.0
4
  diffusers>=0.15.1
5
  transformers>=4.27.4
6
  accelerate>=0.18.0