Spaces:
Runtime error
Runtime error
| import subprocess | |
| import os | |
| # Clone the repository | |
| subprocess.run(["git", "clone", "https://github.com/facefusion/facefusion"], check=True) | |
| # chande directory to face fusion to run ui | |
| os.chdir("facefusion") | |
| # Run the ui | |
| subprocess.run(["python", "run.py", "--execution-providers", "cpu"], check=True) | |