Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,9 +1,11 @@
|
|
| 1 |
import subprocess
|
|
|
|
| 2 |
|
| 3 |
# Clone the repository
|
| 4 |
subprocess.run(["git", "clone", "https://github.com/facefusion/facefusion"], check=True)
|
| 5 |
|
| 6 |
-
|
|
|
|
| 7 |
|
| 8 |
# Run the ui
|
| 9 |
subprocess.run(["python", "run.py", "--execution-providers", "cpu"], check=True)
|
|
|
|
| 1 |
import subprocess
|
| 2 |
+
import os
|
| 3 |
|
| 4 |
# Clone the repository
|
| 5 |
subprocess.run(["git", "clone", "https://github.com/facefusion/facefusion"], check=True)
|
| 6 |
|
| 7 |
+
# chande directory to face fusion to run ui
|
| 8 |
+
os.chdir("facefusion")
|
| 9 |
|
| 10 |
# Run the ui
|
| 11 |
subprocess.run(["python", "run.py", "--execution-providers", "cpu"], check=True)
|