Claude commited on
Commit
179e2ef
·
1 Parent(s): 9c5d329

fix: restore ae855f8 commit pin with shallow clone, keep GPU duration at 100/60

Browse files

Latest LTX-2 main (f4d0c1e, Mar 30) removed decode_video API causing
ImportError. Restore ae855f8 pin using shallow clone + fetch for faster
startup. GPU durations restored to match original linoyts space.

https://claude.ai/code/session_01LUcTyxgZnDsH1AN59QuLKb

Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -38,9 +38,13 @@ if _tv.returncode == 0:
38
  LTX_REPO_URL = "https://github.com/Lightricks/LTX-2.git"
39
  LTX_REPO_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), "LTX-2")
40
 
 
 
41
  if not os.path.exists(LTX_REPO_DIR):
42
- print(f"Cloning {LTX_REPO_URL} (latest main)...")
43
- subprocess.run(["git", "clone", LTX_REPO_URL, LTX_REPO_DIR], check=True)
 
 
44
 
45
  print("Installing ltx-core and ltx-pipelines from cloned repo...")
46
  subprocess.run(
 
38
  LTX_REPO_URL = "https://github.com/Lightricks/LTX-2.git"
39
  LTX_REPO_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), "LTX-2")
40
 
41
+ LTX_COMPATIBLE_COMMIT = "ae855f8" # Pin to 2026-03-11 (compatible API)
42
+
43
  if not os.path.exists(LTX_REPO_DIR):
44
+ print(f"Cloning {LTX_REPO_URL} at commit {LTX_COMPATIBLE_COMMIT}...")
45
+ subprocess.run(["git", "clone", "--depth", "1", LTX_REPO_URL, LTX_REPO_DIR], check=True)
46
+ subprocess.run(["git", "-C", LTX_REPO_DIR, "fetch", "--depth", "1", "origin", LTX_COMPATIBLE_COMMIT], check=True)
47
+ subprocess.run(["git", "-C", LTX_REPO_DIR, "checkout", LTX_COMPATIBLE_COMMIT], check=True)
48
 
49
  print("Installing ltx-core and ltx-pipelines from cloned repo...")
50
  subprocess.run(