mirror of https://github.com/THUDM/ChatGLM-6B
Add prompt after clear
parent
afee32f2b1
commit
fc4ac83501
|
@ -17,7 +17,8 @@ while True:
|
||||||
if query == "clear":
|
if query == "clear":
|
||||||
history = []
|
history = []
|
||||||
command = 'cls' if os_name == 'Windows' else 'clear'
|
command = 'cls' if os_name == 'Windows' else 'clear'
|
||||||
os.system(command)
|
os.system(command)
|
||||||
|
print("欢迎使用 ChatGLM-6B 模型,输入内容即可进行对话,clear 清空对话历史,stop 终止程序")
|
||||||
continue
|
continue
|
||||||
response, history = model.chat(tokenizer, query, history=history)
|
response, history = model.chat(tokenizer, query, history=history)
|
||||||
print(f"ChatGLM-6B:{response}")
|
print(f"ChatGLM-6B:{response}")
|
||||||
|
|
Loading…
Reference in New Issue