Abhi2025 commited on
Commit
b00d19f
·
verified ·
1 Parent(s): a324dcf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -1
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: