linoyts HF Staff commited on
Commit
02ed13e
·
verified ·
1 Parent(s): e149580

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -13,9 +13,12 @@ subprocess.run([sys.executable, "-m", "pip", "install", "xformers==0.0.32.post2"
13
  LTX_REPO_URL = "https://github.com/Lightricks/LTX-2.git"
14
  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", "--depth", "1", LTX_REPO_URL, LTX_REPO_DIR], check=True)
 
19
 
20
  print("Installing ltx-core and ltx-pipelines from cloned repo...")
21
  subprocess.run(
@@ -308,5 +311,4 @@ css = """
308
  """
309
 
310
  if __name__ == "__main__":
311
- demo.launch(theme=gr.themes.Citrus(), css=css)
312
-
 
13
  LTX_REPO_URL = "https://github.com/Lightricks/LTX-2.git"
14
  LTX_REPO_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), "LTX-2")
15
 
16
+ LTX_COMMIT_SHA = "ae855f8538843825f9015a419cf4ba5edaf5eec2"
17
+
18
  if not os.path.exists(LTX_REPO_DIR):
19
+ print(f"Cloning {LTX_REPO_URL} at commit {LTX_COMMIT_SHA}...")
20
+ subprocess.run(["git", "clone", LTX_REPO_URL, LTX_REPO_DIR], check=True)
21
+ subprocess.run(["git", "-C", LTX_REPO_DIR, "checkout", LTX_COMMIT_SHA], check=True)
22
 
23
  print("Installing ltx-core and ltx-pipelines from cloned repo...")
24
  subprocess.run(
 
311
  """
312
 
313
  if __name__ == "__main__":
314
+ demo.launch(theme=gr.themes.Citrus(), css=css)