cool commited on
Commit
59c9f45
·
verified ·
1 Parent(s): e662b1c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -1
Dockerfile CHANGED
@@ -16,6 +16,16 @@ 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 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 && \
@@ -44,7 +54,7 @@ COPY upload_suggestions.py /app/upload_suggestions.py
44
 
45
  ENV LT_HOST="0.0.0.0"
46
  ENV LT_PORT="7860"
47
- ENV LT_LOAD_ONLY="en,de,kab_comp,oc,oc_comp"
48
  ENV LT_SSL=True
49
  ENV LT_SUGGESTIONS="true"
50
  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 en-kab model
20
+ RUN curl -L -o /app/en_kab-1_0.argosmodel \
21
+ https://huggingface.co/spaces/axxam/LibreTranslate_Kabyle/resolve/main/en_kab-1_0.argosmodel && \
22
+ /app/venv/bin/python3 -c "import argostranslate.package; argostranslate.package.install_from_path('/app/en_kab-1_0.argosmodel')"
23
+
24
+ # Install kab-en model
25
+ RUN curl -L -o /app/kab_en-1_0.argosmodel \
26
+ https://huggingface.co/spaces/axxam/LibreTranslate_Kabyle/resolve/main/kab_en-1_0.argosmodel && \
27
+ /app/venv/bin/python3 -c "import argostranslate.package; argostranslate.package.install_from_path('/app/kab_en-1_0.argosmodel')"
28
+
29
  # Install Occitan model
30
  RUN curl -L -o /app/translate-en_oc-1_0.argosmodel \
31
  https://huggingface.co/spaces/axxam/LibreTranslate_Kabyle/resolve/main/translate-en_oc-1_0.argosmodel && \
 
54
 
55
  ENV LT_HOST="0.0.0.0"
56
  ENV LT_PORT="7860"
57
+ ENV LT_LOAD_ONLY="en,de,kab,kab_comp,oc,oc_comp"
58
  ENV LT_SSL=True
59
  ENV LT_SUGGESTIONS="true"
60
  ENV LT_REQ_LIMIT="100"