Fix: Change STORAGE_DIR to local path
Browse filesUpdate storage path to ./data/memories to resolve root permission denied error on Hugging Face Spaces.
app.py
CHANGED
|
@@ -10,7 +10,7 @@ PHOTO_URL = "https://likhith0715--memory-keeper-describe-photo.modal.run"
|
|
| 10 |
BOOK_URL = "https://likhith0715--memory-keeper-build-memory-book.modal.run"
|
| 11 |
|
| 12 |
# Storage directory — persists on HF Spaces
|
| 13 |
-
STORAGE_DIR = "/data/memories"
|
| 14 |
os.makedirs(STORAGE_DIR, exist_ok=True)
|
| 15 |
|
| 16 |
def profile_path(name: str) -> str:
|
|
|
|
| 10 |
BOOK_URL = "https://likhith0715--memory-keeper-build-memory-book.modal.run"
|
| 11 |
|
| 12 |
# Storage directory — persists on HF Spaces
|
| 13 |
+
STORAGE_DIR = "./data/memories"
|
| 14 |
os.makedirs(STORAGE_DIR, exist_ok=True)
|
| 15 |
|
| 16 |
def profile_path(name: str) -> str:
|