|
import subprocess |
|
import os |
|
|
|
|
|
|
|
git_clone_command = 'git clone https://github.com/facefusion/facefusion' |
|
|
|
|
|
try: |
|
subprocess.run(git_clone_command, shell=True, check=True) |
|
print("Git clone successful.") |
|
except subprocess.CalledProcessError as e: |
|
print(f"Error executing Git clone command: {e}") |
|
|
|
|
|
os.chdir('facefusion') |
|
|
|
|
|
|
|
python_script_commandok = 'pip install -r requirements.txt ' |
|
|
|
|
|
try: |
|
subprocess.run(python_script_commandok, shell=True, check=True) |
|
print("Python script executed successfully.") |
|
except subprocess.CalledProcessError as e: |
|
print(f"Error executing Python script: {e}") |
|
|
|
|
|
|
|
python_script_command = 'python install.py ' |
|
|
|
|
|
try: |
|
subprocess.run(python_script_command, shell=True, check=True) |
|
print("Python script executed successfully.") |
|
except subprocess.CalledProcessError as e: |
|
print(f"Error executing Python script: {e}") |
|
|
|
|
|
|
|
python_script_run_command = 'python run.py' |
|
|
|
|
|
try: |
|
subprocess.run(python_script_run_command, shell=True, check=True) |
|
print("Python script executed successfully.") |
|
except subprocess.CalledProcessError as e: |
|
print(f"Error executing Python script: {e}") |
|
|
|
|