Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,11 @@ LTX_REPO_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), "LTX-2")
|
|
| 15 |
|
| 16 |
if not os.path.exists(LTX_REPO_DIR):
|
| 17 |
print(f"Cloning {LTX_REPO_URL}...")
|
| 18 |
-
subprocess.run(["git", "clone",
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
print("Installing ltx-core and ltx-pipelines from cloned repo...")
|
| 21 |
subprocess.run(
|
|
|
|
| 15 |
|
| 16 |
if not os.path.exists(LTX_REPO_DIR):
|
| 17 |
print(f"Cloning {LTX_REPO_URL}...")
|
| 18 |
+
subprocess.run(["git", "clone", LTX_REPO_URL, LTX_REPO_DIR], check=True)
|
| 19 |
+
|
| 20 |
+
# 🔒 Pin to last known working commit (UPDATE THIS if needed)
|
| 21 |
+
WORKING_COMMIT = "c0b9c6d" # example commit — replace with your known working one
|
| 22 |
+
subprocess.run(["git", "-C", LTX_REPO_DIR, "checkout", WORKING_COMMIT], check=True)
|
| 23 |
|
| 24 |
print("Installing ltx-core and ltx-pipelines from cloned repo...")
|
| 25 |
subprocess.run(
|