1
0
mirror of https://github.com/LibreTranslate/LibreTranslate.git synced 2025-11-23 22:04:43 +02:00

Fix torch version for Python < 3.12

This commit is contained in:
Piero Toffanin
2025-11-16 13:56:32 -05:00
parent b9156ab146
commit cc8ac3ecc5

View File

@@ -60,8 +60,8 @@ dependencies = [
"prometheus-client ==0.15.0",
"polib ==1.1.1",
"packaging ==23.1",
"torch ==2.4.0;python_version<'3.9'",
"torch ==2.5.0;python_version>='3.9'",
"torch ==2.4.0;python_version<'3.12'",
"torch ==2.5.0;python_version>='3.12'",
]
[project.scripts]