Spaces:
Sleeping
Sleeping
Commit
·
91c63aa
1
Parent(s):
4f18644
added codeformer
Browse files
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 =
|
| 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)
|