Spaces:
Sleeping
Sleeping
InstantID For retaining facial identity
Browse files
app.py
CHANGED
|
@@ -19,6 +19,7 @@ import os, sys, subprocess
|
|
| 19 |
if not os.path.exists("instantid"):
|
| 20 |
print("🔄 Cloning InstantID repository...")
|
| 21 |
subprocess.run(["git", "clone", "https://github.com/InstantID/InstantID.git"], check=True)
|
|
|
|
| 22 |
sys.path.append(os.path.abspath("instantid"))
|
| 23 |
else:
|
| 24 |
sys.path.append(os.path.abspath("instantid"))
|
|
|
|
| 19 |
if not os.path.exists("instantid"):
|
| 20 |
print("🔄 Cloning InstantID repository...")
|
| 21 |
subprocess.run(["git", "clone", "https://github.com/InstantID/InstantID.git"], check=True)
|
| 22 |
+
os.rename("InstantID", "instantid")
|
| 23 |
sys.path.append(os.path.abspath("instantid"))
|
| 24 |
else:
|
| 25 |
sys.path.append(os.path.abspath("instantid"))
|