HariLogicgo commited on
Commit
91c63aa
·
1 Parent(s): 4f18644

added codeformer

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -56,11 +56,8 @@ swapper = insightface.model_zoo.get_model(inswapper_path, providers=['CPUExecuti
56
  # -------------------------------------------------
57
  # CodeFormer setup
58
  # -------------------------------------------------
59
- CODEFORMER_PATH = os.path.join(os.path.dirname(__file__), "CodeFormer", "inference_codeformer.py")
60
 
61
- print("📂 Current working directory:", os.getcwd())
62
- print("📂 Files in repo root:", os.listdir("."))
63
- print("📂 Files in CodeFormer:", os.listdir("CodeFormer") if os.path.exists("CodeFormer") else "❌ MISSING")
64
  def ensure_codeformer():
65
  if not os.path.exists("CodeFormer"):
66
  subprocess.run("git clone https://github.com/sczhou/CodeFormer.git", shell=True)
 
56
  # -------------------------------------------------
57
  # CodeFormer setup
58
  # -------------------------------------------------
59
+ CODEFORMER_PATH = "CodeFormer/inference_codeformer.py"
60
 
 
 
 
61
  def ensure_codeformer():
62
  if not os.path.exists("CodeFormer"):
63
  subprocess.run("git clone https://github.com/sczhou/CodeFormer.git", shell=True)