fgiasson / en-fr-translation-service

Dummy project to create an English/French translation service using Hugging Face, Docker and such.
5 stars 1 forks source link

Had to change package name otherwise docker creation failed. #1

Open AssafR opened 1 month ago

AssafR commented 1 month ago

First of all, thanks for the great reference!

The installation as is failed on my version, had to made two minor changes. I did not issue a PR but writing it here for your consideration: Here is the corrected version of the command:

RUN apt-get update && \
    apt-get install --no-install-recommends -y python3-dev=3.10.6-1~22.04 && \
    apt-get install --no-install-recommends -y python3-pip=22.0.2+dfsg-1ubuntu0.4 && \
    apt-get install --no-install-recommends -y python3-venv=3.10.6-1~22.04 && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*
AssafR commented 1 month ago

Another small issue: It complained about the library being compiled for NumPy 1 , so had to add this line in requirements.txt 👍

numpy<2.0.0,>=1.17.0