Spaces:
Sleeping
Sleeping
Update src/components/faceswap.py
Browse files
src/components/faceswap.py
CHANGED
|
@@ -39,7 +39,7 @@ class FaceSwapper:
|
|
| 39 |
logger.info(f"Setting XDG_CACHE_HOME to: {os.environ['XDG_CACHE_HOME']}")
|
| 40 |
|
| 41 |
# Ensure cookies.txt exists
|
| 42 |
-
cookie_path = os.path.join(
|
| 43 |
if not os.path.exists(cookie_path):
|
| 44 |
with open(cookie_path, 'w') as f:
|
| 45 |
# Create an empty cookies.txt file
|
|
|
|
| 39 |
logger.info(f"Setting XDG_CACHE_HOME to: {os.environ['XDG_CACHE_HOME']}")
|
| 40 |
|
| 41 |
# Ensure cookies.txt exists
|
| 42 |
+
cookie_path = os.path.join("/.cache/gdown/", "cookies.txt")
|
| 43 |
if not os.path.exists(cookie_path):
|
| 44 |
with open(cookie_path, 'w') as f:
|
| 45 |
# Create an empty cookies.txt file
|