Wauplin HF staff commited on
Commit
fa2febc
1 Parent(s): 4c3f7da

Update gallery_history.py

Browse files
Files changed (1) hide show
  1. gallery_history.py +1 -0
gallery_history.py CHANGED
@@ -33,6 +33,7 @@ if _folder.startswith("/data") and not os.path.exists("/data"):
33
  f"'HISTORY_FOLDER' environment variable is set to '{_folder}' which doesn't exist. User history will be saved "
34
  "locally and will be lost when the Space instance is restarted."
35
  )
 
36
  HISTORY_FOLDER_PATH = Path(_folder)
37
 
38
  IMAGES_FOLDER_PATH = HISTORY_FOLDER_PATH / "images"
 
33
  f"'HISTORY_FOLDER' environment variable is set to '{_folder}' which doesn't exist. User history will be saved "
34
  "locally and will be lost when the Space instance is restarted."
35
  )
36
+ _folder = Path(__file__).parent / "history"
37
  HISTORY_FOLDER_PATH = Path(_folder)
38
 
39
  IMAGES_FOLDER_PATH = HISTORY_FOLDER_PATH / "images"