fix: ocr issue

This commit is contained in:
Timothy J. Baek 2024-03-06 18:49:35 -08:00
parent 0476c5f30b
commit 34c7b6783c
2 changed files with 4 additions and 1 deletions

View file

@ -53,6 +53,8 @@ WORKDIR /app/backend
# install python dependencies # install python dependencies
COPY ./backend/requirements.txt ./requirements.txt 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 torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu --no-cache-dir
RUN pip3 install -r requirements.txt --no-cache-dir RUN pip3 install -r requirements.txt --no-cache-dir

View file

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