NeuroDonu commited on
Commit
84b91e6
·
verified ·
1 Parent(s): d94c15e

Update updater_facefusion.py

Browse files
Files changed (1) hide show
  1. updater_facefusion.py +4 -4
updater_facefusion.py CHANGED
@@ -98,13 +98,14 @@ def update_branch(branch):
98
 
99
  def start_ff(branch, webcam_mode=False):
100
  path_to_branch = master_path
101
- second_file = "facefusion.py"
102
 
103
  if webcam_mode:
104
  args = ["run", "--open-browser", "--ui-layouts", "webcam"]
105
  else:
106
  args = ["run"]
107
- subprocess.run([python, os.path.join(path_to_branch, second_file)] + args)
 
108
 
109
  def get_localized_text(language, key):
110
  texts = {
@@ -160,5 +161,4 @@ def facefusion():
160
  print(get_localized_text(language, "invalid_choice"))
161
 
162
  if __name__ == "__main__":
163
- facefusion()
164
-
 
98
 
99
  def start_ff(branch, webcam_mode=False):
100
  path_to_branch = master_path
101
+ second_file = os.path.join(path_to_branch, "facefusion.py")
102
 
103
  if webcam_mode:
104
  args = ["run", "--open-browser", "--ui-layouts", "webcam"]
105
  else:
106
  args = ["run"]
107
+ cmd = f'"{activate_script}" && "{python}" {second_file} {args}'
108
+ subprocess.run(cmd, shell=True, check=True)
109
 
110
  def get_localized_text(language, key):
111
  texts = {
 
161
  print(get_localized_text(language, "invalid_choice"))
162
 
163
  if __name__ == "__main__":
164
+ facefusion()