Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -67,8 +67,8 @@ class Chatbot:
|
|
67 |
self.chat_history = []
|
68 |
|
69 |
# set chat log data path in data folder (persistent storage)
|
70 |
-
|
71 |
-
|
72 |
self.dataset_path = dataset_dir / f"chat_log_{session_id}.json"
|
73 |
# set chat log scheduler
|
74 |
self.scheduler = CommitScheduler(
|
@@ -164,6 +164,7 @@ class Chatbot:
|
|
164 |
#user_chat_dir = Path("logs")
|
165 |
#user_chat_dir.mkdir(parents=True, exist_ok=True)
|
166 |
user_chat_path = self.dataset_dir / f"chat_store_{user_id}.json"
|
|
|
167 |
#chat_store.persist(user_chat_path)
|
168 |
|
169 |
'''
|
|
|
67 |
self.chat_history = []
|
68 |
|
69 |
# set chat log data path in data folder (persistent storage)
|
70 |
+
dataset_dir = Path("logs")
|
71 |
+
dataset_dir.mkdir(parents=True, exist_ok=True)
|
72 |
self.dataset_path = dataset_dir / f"chat_log_{session_id}.json"
|
73 |
# set chat log scheduler
|
74 |
self.scheduler = CommitScheduler(
|
|
|
164 |
#user_chat_dir = Path("logs")
|
165 |
#user_chat_dir.mkdir(parents=True, exist_ok=True)
|
166 |
user_chat_path = self.dataset_dir / f"chat_store_{user_id}.json"
|
167 |
+
user_chat_path = f"chat_store_{user_id}.json"
|
168 |
#chat_store.persist(user_chat_path)
|
169 |
|
170 |
'''
|