Spaces:
Runtime error
Runtime error
Commit
•
c1f6c62
1
Parent(s):
4c3f7da
Update gallery_history.py (#51)
Browse files- Update gallery_history.py (fa2febcdd5c1159c2021ca1e9587f60d94d091d1)
Co-authored-by: Lucain Pouget <Wauplin@users.noreply.huggingface.co>
- 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"
|