Spaces:
Sleeping
Sleeping
Tuchuanhuhuhu
commited on
Commit
•
d2cbf72
1
Parent(s):
93721f8
未登录用户页面新加载时防止history混淆
Browse files
modules/models/base_model.py
CHANGED
@@ -570,6 +570,7 @@ class BaseLLMModel:
|
|
570 |
|
571 |
def auto_load(self):
|
572 |
if self.user_identifier == "":
|
|
|
573 |
return self.system_prompt, gr.update()
|
574 |
history_file_path = get_history_filepath(self.user_identifier)
|
575 |
filename, system_prompt, chatbot = self.load_chat_history(history_file_path, self.user_identifier)
|
|
|
570 |
|
571 |
def auto_load(self):
|
572 |
if self.user_identifier == "":
|
573 |
+
self.reset()
|
574 |
return self.system_prompt, gr.update()
|
575 |
history_file_path = get_history_filepath(self.user_identifier)
|
576 |
filename, system_prompt, chatbot = self.load_chat_history(history_file_path, self.user_identifier)
|