likki1715 commited on
Commit
bcf57b6
·
verified ·
1 Parent(s): 26f3daf

Fix: Change STORAGE_DIR to local path

Browse files

Update storage path to ./data/memories to resolve root permission denied error on Hugging Face Spaces.

Files changed (1) hide show
  1. app.py +1 -1
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: