Update app.py
Browse files
app.py
CHANGED
@@ -15,8 +15,20 @@ except subprocess.CalledProcessError as e:
|
|
15 |
# Change directory to the cloned repository
|
16 |
os.chdir('facefusion')
|
17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
# Define the command to run the Python script
|
19 |
-
python_script_command = 'python install.py'
|
20 |
|
21 |
# Execute the Python script command using subprocess
|
22 |
try:
|
|
|
15 |
# Change directory to the cloned repository
|
16 |
os.chdir('facefusion')
|
17 |
|
18 |
+
|
19 |
+
# Define the command to run the Python script
|
20 |
+
python_script_commandok = 'pip install -r requirements.txt '
|
21 |
+
|
22 |
+
# Execute the Python script command using subprocess
|
23 |
+
try:
|
24 |
+
subprocess.run(python_script_commandok, shell=True, check=True)
|
25 |
+
print("Python script executed successfully.")
|
26 |
+
except subprocess.CalledProcessError as e:
|
27 |
+
print(f"Error executing Python script: {e}")
|
28 |
+
|
29 |
+
|
30 |
# Define the command to run the Python script
|
31 |
+
python_script_command = 'python install.py '
|
32 |
|
33 |
# Execute the Python script command using subprocess
|
34 |
try:
|