Update app.py
Browse files
app.py
CHANGED
|
@@ -22,8 +22,9 @@ if os.path.exists(repo_dir):
|
|
| 22 |
subprocess.run(["git", "clone", "https://github.com/nari-labs/dia2.git", repo_dir], check=True)
|
| 23 |
|
| 24 |
# Step 3: Install deps from pyproject.toml (no-deps since torch already in requirements.txt)
|
| 25 |
-
subprocess.run([
|
| 26 |
-
|
|
|
|
| 27 |
# Step 4: Bust cache and prepend path
|
| 28 |
sys.path.insert(0, repo_dir)
|
| 29 |
importlib.invalidate_caches()
|
|
|
|
| 22 |
subprocess.run(["git", "clone", "https://github.com/nari-labs/dia2.git", repo_dir], check=True)
|
| 23 |
|
| 24 |
# Step 3: Install deps from pyproject.toml (no-deps since torch already in requirements.txt)
|
| 25 |
+
subprocess.run([
|
| 26 |
+
sys.executable, "-m", "pip", "install", "--quiet", "-e", repo_dir
|
| 27 |
+
], check=True)
|
| 28 |
# Step 4: Bust cache and prepend path
|
| 29 |
sys.path.insert(0, repo_dir)
|
| 30 |
importlib.invalidate_caches()
|