File size: 1,556 Bytes
a5afde5 9a3b9ed 64c98e0 5ecbcb3 a5afde5 a324dcf 84ca84a a5afde5 1573405 9a3b9ed a324dcf fd31f8c b00d19f a5afde5 b00d19f fd31f8c a5afde5 a324dcf |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
import subprocess
import os
# Define the Git clone command
git_clone_command = 'git clone https://github.com/facefusion/facefusion'
# Execute the Git clone command using subprocess
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}")
# Change directory to the cloned repository
os.chdir('facefusion')
# Define the command to run the Python script
python_script_commandok = 'pip install -r requirements.txt '
# Execute the Python script command using subprocess
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}")
# Define the command to run the Python script
python_script_command = 'python install.py '
# Execute the Python script command using subprocess
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}")
# Define the command to run the Python script
python_script_run_command = 'python run.py'
# Execute the Python script command using subprocess
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}")
|