cool
commited on
Update Dockerfile
Browse files- Dockerfile +6 -1
Dockerfile
CHANGED
|
@@ -16,6 +16,11 @@ RUN curl -L -o /app/en_kab_comp.argosmodel \
|
|
| 16 |
https://huggingface.co/spaces/axxam/LibreTranslate_Kabyle/resolve/main/en_kab_comp.argosmodel && \
|
| 17 |
/app/venv/bin/python3 -c "import argostranslate.package; argostranslate.package.install_from_path('/app/en_kab_comp.argosmodel')"
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
# Install French model
|
| 20 |
RUN curl -L -o /app/en_fr.argosmodel \
|
| 21 |
https://argos-net.com/v1/translate-en_fr-1_9.argosmodel && \
|
|
@@ -33,7 +38,7 @@ COPY upload_suggestions.py /app/upload_suggestions.py
|
|
| 33 |
|
| 34 |
ENV LT_HOST="0.0.0.0"
|
| 35 |
ENV LT_PORT="7860"
|
| 36 |
-
ENV LT_LOAD_ONLY="en,de,
|
| 37 |
ENV LT_SSL=True
|
| 38 |
ENV LT_SUGGESTIONS="true"
|
| 39 |
ENV LT_REQ_LIMIT="100"
|
|
|
|
| 16 |
https://huggingface.co/spaces/axxam/LibreTranslate_Kabyle/resolve/main/en_kab_comp.argosmodel && \
|
| 17 |
/app/venv/bin/python3 -c "import argostranslate.package; argostranslate.package.install_from_path('/app/en_kab_comp.argosmodel')"
|
| 18 |
|
| 19 |
+
# Install Occitan model
|
| 20 |
+
RUN curl -L -o /app/translate-en_oc-1_0.argosmodel \
|
| 21 |
+
https://huggingface.co/spaces/axxam/LibreTranslate_Kabyle/resolve/main/translate-en_oc-1_0.argosmodel && \
|
| 22 |
+
/app/venv/bin/python3 -c "import argostranslate.package; argostranslate.package.install_from_path('/app/translate-en_oc-1_0.argosmodel')"
|
| 23 |
+
|
| 24 |
# Install French model
|
| 25 |
RUN curl -L -o /app/en_fr.argosmodel \
|
| 26 |
https://argos-net.com/v1/translate-en_fr-1_9.argosmodel && \
|
|
|
|
| 38 |
|
| 39 |
ENV LT_HOST="0.0.0.0"
|
| 40 |
ENV LT_PORT="7860"
|
| 41 |
+
ENV LT_LOAD_ONLY="en,de,kab_comp,oc"
|
| 42 |
ENV LT_SSL=True
|
| 43 |
ENV LT_SUGGESTIONS="true"
|
| 44 |
ENV LT_REQ_LIMIT="100"
|