Spaces:
Sleeping
Sleeping
Tuchuanhuhuhu
commited on
Commit
·
b1dcd61
1
Parent(s):
196c2e9
bugfix: 取消重命名时失去焦点
Browse files
modules/models/base_model.py
CHANGED
@@ -663,7 +663,7 @@ class BaseLLMModel:
|
|
663 |
|
664 |
def rename_chat_history(self, filename, chatbot, user_name):
|
665 |
if filename == "":
|
666 |
-
return gr.update()
|
667 |
if not filename.endswith(".json"):
|
668 |
filename += ".json"
|
669 |
self.delete_chat_history(self.history_file_path, user_name)
|
|
|
663 |
|
664 |
def rename_chat_history(self, filename, chatbot, user_name):
|
665 |
if filename == "":
|
666 |
+
return gr.update()
|
667 |
if not filename.endswith(".json"):
|
668 |
filename += ".json"
|
669 |
self.delete_chat_history(self.history_file_path, user_name)
|