Spaces:
Runtime error
Runtime error
nahidulalam
commited on
Commit
β’
57b702b
1
Parent(s):
90090f0
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,18 @@
|
|
1 |
#!/usr/bin/env python3
|
2 |
|
3 |
-
|
|
|
|
|
4 |
|
5 |
-
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
#!/usr/bin/env python3
|
2 |
|
3 |
+
import subprocess
|
4 |
+
import os
|
5 |
+
import sys
|
6 |
|
7 |
+
|
8 |
+
|
9 |
+
# Clone the repository
|
10 |
+
subprocess.run(["git", "clone", "https://github.com/s0md3v/roop", "--branch", "1.3.2", "--single-branch"], check=True)
|
11 |
+
# chande directory to face fusion to run ui
|
12 |
+
os.chdir("roop")
|
13 |
+
|
14 |
+
# installation
|
15 |
+
#subprocess.run(["python", "install.py", "--onnxruntime", "cuda-11.8", "--skip-conda"], check=True)
|
16 |
+
|
17 |
+
|
18 |
+
subprocess.run(["python", "run.py", "--execution-providers", "cpu"], check=True)
|