Aniruddh commited on
Commit
217fdad
·
1 Parent(s): 9107ac2

changes done to docker file, requirements and README

Browse files
Dockerfile CHANGED
@@ -39,8 +39,14 @@ COPY backend/ /app/backend/
39
  COPY --from=fe /fe/dist/ /app/backend/frontend/
40
 
41
  # Python deps (Torch CPU first)
 
 
 
 
42
  RUN pip install --no-cache-dir --upgrade pip \
43
- && pip install --no-cache-dir torch --index-url https://download.pytorch.org/whl/cpu \
 
 
44
  && pip install --no-cache-dir -r backend/requirements.txt \
45
  && pip install --no-cache-dir uvicorn==0.30.1
46
 
 
39
  COPY --from=fe /fe/dist/ /app/backend/frontend/
40
 
41
  # Python deps (Torch CPU first)
42
+ #RUN pip install --no-cache-dir --upgrade pip \
43
+ # && pip install --no-cache-dir torch --index-url https://download.pytorch.org/whl/cpu \
44
+
45
+
46
  RUN pip install --no-cache-dir --upgrade pip \
47
+ && pip uninstall -y torch torchvision torchaudio || true \
48
+ && pip install --no-cache-dir torch==2.3.0 torchvision==0.18.0 torchaudio==2.3.0 --index-url https://download.pytorch.org/whl/cpu \
49
+ && pip install --no-cache-dir easyocr==1.7.1 \
50
  && pip install --no-cache-dir -r backend/requirements.txt \
51
  && pip install --no-cache-dir uvicorn==0.30.1
52
 
Readme.md → README.md RENAMED
File without changes
backend/requirements.txt CHANGED
@@ -4,7 +4,7 @@ certifi==2025.10.5
4
  click==8.1.8
5
  distro==1.9.0
6
  dnspython==2.7.0
7
- easyocr==1.7.0
8
  email-validator==2.3.0
9
  exceptiongroup==1.3.0
10
  fastapi==0.111.1
 
4
  click==8.1.8
5
  distro==1.9.0
6
  dnspython==2.7.0
7
+ #easyocr==1.7.0
8
  email-validator==2.3.0
9
  exceptiongroup==1.3.0
10
  fastapi==0.111.1