zlmqi commited on
Commit
3ddbce1
1 Parent(s): 377634a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -50,9 +50,9 @@ class Chatbot:
50
  self.chat_history = []
51
 
52
  # access chat log file in data folder (persistent storage)
53
- dataset_dir = Path("logs/")
54
  dataset_dir.mkdir(parents=True, exist_ok=True)
55
- self.history_file = dataset_dir / f"chat_log_{uuid.uuid4()}.json"
56
  #self.history_file = f"chat_log_{uuid.uuid4()}.json"
57
 
58
  scheduler = CommitScheduler(
 
50
  self.chat_history = []
51
 
52
  # access chat log file in data folder (persistent storage)
53
+ dataset_dir = Path("logs")
54
  dataset_dir.mkdir(parents=True, exist_ok=True)
55
+ self.history_file = dataset_dir / f"chat_log_{uuid4()}.json"
56
  #self.history_file = f"chat_log_{uuid.uuid4()}.json"
57
 
58
  scheduler = CommitScheduler(