Skip to content

Commit ed8a9c7

Browse files
committed
Updated translate requirements, reinstated procfile
1 parent 3d00319 commit ed8a9c7

File tree

5 files changed

+568
-173
lines changed

5 files changed

+568
-173
lines changed

Procfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
release: python manage.py migrate --noinput && python manage.py clear_cache --cache=default && python manage.py sync_roles
2-
#web: python manage.py install_languages fr_en ar_en es_en --noinput && gunicorn hypha.wsgi:application --log-file -
3-
web: gunicorn hypha.wsgi:application --log-file -
2+
web: python manage.py install_languages fr_en ar_en es_en --noinput && gunicorn hypha.wsgi:application --log-file -

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,11 @@ dependencies = [
101101
# Requirements for machine translations
102102
"translate" = ["torch~=2.3", "argostranslate~=1.9.6"]
103103

104+
"translate-cpu" = ["torch==2.3.1+cpu", "argostranslate~=1.9.6"]
105+
104106
[tool.uv]
105107
default-groups = ["dev", "docs"]
108+
find-links = ["https://download.pytorch.org/whl/cpu/torch_stable.html"]
106109

107110
[tool.mypy]
108111
plugins = ["mypy_django_plugin.main"]

0 commit comments

Comments
 (0)