cool
commited on
Update Dockerfile
Browse files- Dockerfile +6 -1
Dockerfile
CHANGED
|
@@ -41,6 +41,11 @@ RUN curl -L -o /app/en_kab-num40000.argosmodel \
|
|
| 41 |
https://huggingface.co/spaces/axxam/LibreTranslate_Kabyle/resolve/main/en_kab-num40000.argosmodel && \
|
| 42 |
/app/venv/bin/python3 -c "import argostranslate.package; argostranslate.package.install_from_path('/app/en_kab-num40000.argosmodel')"
|
| 43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
# Install Occitan model
|
| 45 |
RUN curl -L -o /app/translate-en_oc-1_0.argosmodel \
|
| 46 |
https://huggingface.co/spaces/axxam/LibreTranslate_Kabyle/resolve/main/translate-en_oc-1_0.argosmodel && \
|
|
@@ -96,7 +101,7 @@ COPY upload_suggestions.py /app/upload_suggestions.py
|
|
| 96 |
|
| 97 |
ENV LT_HOST="0.0.0.0"
|
| 98 |
ENV LT_PORT="7860"
|
| 99 |
-
ENV LT_LOAD_ONLY="en,de,kab,kab_comp,kab_os,kab_num,oc,oc_comp"
|
| 100 |
ENV LT_SSL=True
|
| 101 |
ENV LT_SUGGESTIONS="false"
|
| 102 |
ENV LT_REQ_LIMIT="100"
|
|
|
|
| 41 |
https://huggingface.co/spaces/axxam/LibreTranslate_Kabyle/resolve/main/en_kab-num40000.argosmodel && \
|
| 42 |
/app/venv/bin/python3 -c "import argostranslate.package; argostranslate.package.install_from_path('/app/en_kab-num40000.argosmodel')"
|
| 43 |
|
| 44 |
+
# Install en-kab model 34000
|
| 45 |
+
RUN curl -L -o /app/en_kab-kab.argosmodel \
|
| 46 |
+
https://huggingface.co/spaces/axxam/LibreTranslate_Kabyle/resolve/main/en_kab-kab.argosmodel && \
|
| 47 |
+
/app/venv/bin/python3 -c "import argostranslate.package; argostranslate.package.install_from_path('/app/en_kab-kab.argosmodel')"
|
| 48 |
+
|
| 49 |
# Install Occitan model
|
| 50 |
RUN curl -L -o /app/translate-en_oc-1_0.argosmodel \
|
| 51 |
https://huggingface.co/spaces/axxam/LibreTranslate_Kabyle/resolve/main/translate-en_oc-1_0.argosmodel && \
|
|
|
|
| 101 |
|
| 102 |
ENV LT_HOST="0.0.0.0"
|
| 103 |
ENV LT_PORT="7860"
|
| 104 |
+
ENV LT_LOAD_ONLY="en,de,kab,kab_comp,kab_os,kab_num,oc,oc_comp,kab_kab"
|
| 105 |
ENV LT_SSL=True
|
| 106 |
ENV LT_SUGGESTIONS="false"
|
| 107 |
ENV LT_REQ_LIMIT="100"
|