else condition is absent. this is causing an issue while running in colab.

#85
by pezzononvate7 - opened
Files changed (1) hide show
  1. gallery_history.py +1 -1
gallery_history.py CHANGED
@@ -28,7 +28,7 @@ if _folder is None:
28
  "locally and will be lost when the Space instance is restarted."
29
  )
30
  _folder = Path(__file__).parent / "history"
31
- if _folder.startswith("/data") and not os.path.exists("/data"):
32
  print(
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."
 
28
  "locally and will be lost when the Space instance is restarted."
29
  )
30
  _folder = Path(__file__).parent / "history"
31
+ elif _folder.startswith("/data") and not os.path.exists("/data"):
32
  print(
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."