mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-08-21 22:00:15 +02:00
Merge pull request #377 from mynameisfiber/main
Fix reference to `app` and `url`
This commit is contained in:
commit
bd9a153773
@ -16,12 +16,12 @@ RUN apt-get update && apt-get upgrade --assume-yes
|
|||||||
|
|
||||||
RUN pip3 install --upgrade pip && apt-get remove python3-pip --assume-yes
|
RUN pip3 install --upgrade pip && apt-get remove python3-pip --assume-yes
|
||||||
|
|
||||||
COPY . .
|
|
||||||
|
|
||||||
RUN ln -s /usr/bin/python3 /usr/bin/python
|
RUN ln -s /usr/bin/python3 /usr/bin/python
|
||||||
|
|
||||||
RUN pip3 install torch==1.12.0+cu116 -f https://download.pytorch.org/whl/torch_stable.html
|
RUN pip3 install torch==1.12.0+cu116 -f https://download.pytorch.org/whl/torch_stable.html
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
RUN if [ "$with_models" = "true" ]; then \
|
RUN if [ "$with_models" = "true" ]; then \
|
||||||
# install only the dependencies first
|
# install only the dependencies first
|
||||||
pip3 install -e .; \
|
pip3 install -e .; \
|
||||||
|
@ -53,7 +53,7 @@ def check_and_install_models(force=False, load_only_lang_codes=None):
|
|||||||
package.install_from_path(download_path)
|
package.install_from_path(download_path)
|
||||||
|
|
||||||
# reload installed languages
|
# reload installed languages
|
||||||
app.language.languages = translate.get_installed_languages()
|
libretranslate.language.languages = translate.get_installed_languages()
|
||||||
print(
|
print(
|
||||||
"Loaded support for %s languages (%s models total)!"
|
"Loaded support for %s languages (%s models total)!"
|
||||||
% (len(translate.get_installed_languages()), len(available_packages))
|
% (len(translate.get_installed_languages()), len(available_packages))
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
argostranslate==1.7.0
|
argostranslate==1.7.5
|
||||||
Flask==2.2.2
|
Flask==2.2.2
|
||||||
flask-swagger==0.2.14
|
flask-swagger==0.2.14
|
||||||
flask-swagger-ui==4.11.1
|
flask-swagger-ui==4.11.1
|
||||||
|
Loading…
Reference in New Issue
Block a user