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:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "snapotter",
|
"name": "snapotter",
|
||||||
"version": "1.15.10",
|
"version": "1.15.11",
|
||||||
"private": true,
|
"private": true,
|
||||||
"packageManager": "pnpm@9.15.4",
|
"packageManager": "pnpm@9.15.4",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -87,7 +87,8 @@ def cpu_fallback_packages(packages: list[str]) -> list[str]:
|
|||||||
# Use CPU-only wheels (~200MB vs ~2.6GB with CUDA)
|
# Use CPU-only wheels (~200MB vs ~2.6GB with CUDA)
|
||||||
cpu_pkgs.append("--index-url")
|
cpu_pkgs.append("--index-url")
|
||||||
cpu_pkgs.append("https://download.pytorch.org/whl/cpu")
|
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
|
continue
|
||||||
|
|
||||||
name = pkg.split("==")[0].split(">=")[0].split("[")[0].strip()
|
name = pkg.split("==")[0].split(">=")[0].split("[")[0].strip()
|
||||||
|
|||||||
@@ -1188,7 +1188,7 @@ export const PRINT_LAYOUTS: PrintLayout[] = [
|
|||||||
{ id: "none", label: "None", width: 0, height: 0 },
|
{ id: "none", label: "None", width: 0, height: 0 },
|
||||||
];
|
];
|
||||||
|
|
||||||
export const APP_VERSION = "1.15.9";
|
export const APP_VERSION = "1.15.11";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tool IDs that require the Python sidecar (AI/ML tools).
|
* Tool IDs that require the Python sidecar (AI/ML tools).
|
||||||
|
|||||||
Reference in New Issue
Block a user