Add prompt after clear

pull/41/head
duzx16 2023-03-14 20:39:55 +08:00
parent afee32f2b1
commit fc4ac83501
1 changed files with 2 additions and 1 deletions

View File

@ -17,7 +17,8 @@ while True:
if query == "clear":
history = []
command = 'cls' if os_name == 'Windows' else 'clear'
os.system(command)
os.system(command)
print("欢迎使用 ChatGLM-6B 模型输入内容即可进行对话clear 清空对话历史stop 终止程序")
continue
response, history = model.chat(tokenizer, query, history=history)
print(f"ChatGLM-6B{response}")