mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix: version constant and CPU torch install for Docker release
- Bump APP_VERSION to 1.15.11 (was hardcoded at 1.15.9, causing health endpoint to report wrong version in Docker images) - Fix cpu_fallback_packages() splitting --index-url into separate pip install arguments, breaking torch install on CPU-only amd64
This commit is contained in:
@@ -87,7 +87,8 @@ def cpu_fallback_packages(packages: list[str]) -> list[str]:
|
||||
# Use CPU-only wheels (~200MB vs ~2.6GB with CUDA)
|
||||
cpu_pkgs.append("--index-url")
|
||||
cpu_pkgs.append("https://download.pytorch.org/whl/cpu")
|
||||
result.extend(cpu_pkgs)
|
||||
# Join into a single string so pip_install processes them as one command
|
||||
result.append(" ".join(cpu_pkgs))
|
||||
continue
|
||||
|
||||
name = pkg.split("==")[0].split(">=")[0].split("[")[0].strip()
|
||||
|
||||
Reference in New Issue
Block a user