Nick088 commited on
Commit
997b0cf
β€’
1 Parent(s): 1ebe84f

remove choose branch option

Browse files

as next branch got merged (facefusion 3.0.0), it got deleted, remaining only the master branch

Files changed (1) hide show
  1. app.py +4 -13
app.py CHANGED
@@ -1,4 +1,3 @@
1
-
2
  import subprocess
3
  import os
4
  import torch
@@ -11,29 +10,21 @@ else:
11
  print("Using CPU")
12
 
13
 
14
- # get branch
15
- git_branch = os.getenv('git_branch')
16
-
17
-
18
  # Clone the repository
19
- subprocess.run(["git", "clone", "https://github.com/facefusion/facefusion", "--branch", git_branch, "--single-branch"], check=True)
20
  # chande directory to face fusion to run ui
21
  os.chdir("facefusion")
22
 
23
 
24
  # installation
25
  if device == "cuda":
26
- subprocess.run(["python", "install.py", "--onnxruntime", "cuda-11.8", "--skip-conda"], check=True)
27
  elif device == "cpu":
28
  subprocess.run(["python", "install.py", "--onnxruntime", "default", "--skip-conda"], check=True)
29
 
30
 
31
  # Run the ui
32
- if device == "cuda" and git_branch == "master":
33
- subprocess.run(["python", "run.py", "--execution-providers", "cuda"], check=True)
34
- elif device == "cpu" and git_branch == "master":
35
- subprocess.run(["python", "run.py", "--execution-providers", "cpu"], check=True)
36
- elif device == "cuda" and git_branch == "next":
37
  subprocess.run(["python", "facefusion.py", "run", "--execution-providers", "cuda"], check=True)
38
- elif device == "cpu" and git_branch == "next":
39
  subprocess.run(["python", "facefusion.py", "run", "--execution-providers", "cpu"], check=True)
 
 
1
  import subprocess
2
  import os
3
  import torch
 
10
  print("Using CPU")
11
 
12
 
 
 
 
 
13
  # Clone the repository
14
+ subprocess.run(["git", "clone", "https://github.com/facefusion/facefusion", "--single-branch"], check=True)
15
  # chande directory to face fusion to run ui
16
  os.chdir("facefusion")
17
 
18
 
19
  # installation
20
  if device == "cuda":
21
+ subprocess.run(["python", "install.py", "--onnxruntime", "cuda", "--skip-conda"], check=True)
22
  elif device == "cpu":
23
  subprocess.run(["python", "install.py", "--onnxruntime", "default", "--skip-conda"], check=True)
24
 
25
 
26
  # Run the ui
27
+ if device == "cuda":
 
 
 
 
28
  subprocess.run(["python", "facefusion.py", "run", "--execution-providers", "cuda"], check=True)
29
+ elif device == "cpu":
30
  subprocess.run(["python", "facefusion.py", "run", "--execution-providers", "cpu"], check=True)