Browse Source

fix: ocr issue

Timothy J. Baek 1 year ago
parent
commit
34c7b6783c
2 changed files with 4 additions and 1 deletions
  1. 2 0
      Dockerfile
  2. 2 1
      backend/requirements.txt

+ 2 - 0
Dockerfile

@@ -53,6 +53,8 @@ WORKDIR /app/backend
 # install python dependencies
 COPY ./backend/requirements.txt ./requirements.txt
 
+RUN apt-get update && apt-get install ffmpeg libsm6 libxext6  -y
+
 RUN pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu --no-cache-dir
 RUN pip3 install -r requirements.txt --no-cache-dir
 

+ 2 - 1
backend/requirements.txt

@@ -34,8 +34,9 @@ pandas
 openpyxl
 pyxlsb
 xlrd
-rapidocr-onnxruntime
+
 opencv-python-headless
+rapidocr-onnxruntime
 
 faster-whisper