cryogenic22 commited on
Commit
fdff852
·
verified ·
1 Parent(s): 853e8cf

Update storage/storage_manager.py

Browse files
Files changed (1) hide show
  1. storage/storage_manager.py +3 -3
storage/storage_manager.py CHANGED
@@ -68,10 +68,10 @@ class UserStorageManager:
68
  chat_file = self.paths["chats"] / f"{chat_id}.json"
69
  if not chat_file.exists():
70
  return None
71
-
72
  with open(chat_file, "r") as f:
73
  chat_data = json.load(f)
74
-
75
  # Load associated images
76
  image_dir = self.paths["images"] / chat_id
77
  if image_dir.exists():
@@ -80,7 +80,7 @@ class UserStorageManager:
80
  with open(img_file, "rb") as f:
81
  images.append(f.read())
82
  chat_data['images'] = images
83
-
84
  return chat_data
85
  except Exception as e:
86
  st.error(f"Error loading chat: {str(e)}")
 
68
  chat_file = self.paths["chats"] / f"{chat_id}.json"
69
  if not chat_file.exists():
70
  return None
71
+
72
  with open(chat_file, "r") as f:
73
  chat_data = json.load(f)
74
+
75
  # Load associated images
76
  image_dir = self.paths["images"] / chat_id
77
  if image_dir.exists():
 
80
  with open(img_file, "rb") as f:
81
  images.append(f.read())
82
  chat_data['images'] = images
83
+
84
  return chat_data
85
  except Exception as e:
86
  st.error(f"Error loading chat: {str(e)}")