HariLogicgo commited on
Commit
5593c17
·
1 Parent(s): 17b254a

codeformer path fixed

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -8,6 +8,7 @@ from insightface.app import FaceAnalysis
8
  from huggingface_hub import hf_hub_download
9
  import subprocess
10
 
 
11
  # -------------------------------------------------
12
  # Paths
13
  # -------------------------------------------------
@@ -55,7 +56,8 @@ swapper = insightface.model_zoo.get_model(inswapper_path, providers=['CPUExecuti
55
  # -------------------------------------------------
56
  # CodeFormer setup
57
  # -------------------------------------------------
58
- CODEFORMER_PATH = "CodeFormer/inference_codeformer.py"
 
59
 
60
  def ensure_codeformer():
61
  if not os.path.exists("CodeFormer"):
 
8
  from huggingface_hub import hf_hub_download
9
  import subprocess
10
 
11
+
12
  # -------------------------------------------------
13
  # Paths
14
  # -------------------------------------------------
 
56
  # -------------------------------------------------
57
  # CodeFormer setup
58
  # -------------------------------------------------
59
+ CODEFORMER_PATH = os.path.join(os.path.dirname(__file__), "CodeFormer", "inference_codeformer.py")
60
+
61
 
62
  def ensure_codeformer():
63
  if not os.path.exists("CodeFormer"):