mirror of
https://github.com/QwenLM/Qwen.git
synced 2026-05-20 16:35:47 +08:00
Update cli_demo.py
This commit is contained in:
@@ -177,7 +177,7 @@ def main():
|
|||||||
# Run chat.
|
# Run chat.
|
||||||
set_seed(seed)
|
set_seed(seed)
|
||||||
try:
|
try:
|
||||||
for response in model.chat(tokenizer, query, history=history, stream=True):
|
for response in model.chat_stream(tokenizer, query, history=history):
|
||||||
_clear_screen()
|
_clear_screen()
|
||||||
print(f"\nUser: {query}")
|
print(f"\nUser: {query}")
|
||||||
print(f"\nQwen-7B: {response}")
|
print(f"\nQwen-7B: {response}")
|
||||||
|
|||||||
Reference in New Issue
Block a user