Update cli_demo.py

main
Yang An 2 years ago committed by GitHub
parent 2c0761afe7
commit 982eef010d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -177,7 +177,7 @@ def main():
# Run chat.
set_seed(seed)
try:
for response in model.chat(tokenizer, query, history=history, stream=True):
for response in model.chat_stream(tokenizer, query, history=history):
_clear_screen()
print(f"\nUser: {query}")
print(f"\nQwen-7B: {response}")

Loading…
Cancel
Save