You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
302 B

4 weeks ago
from Util.ALiYunUtil import ALiYunUtil
4 weeks ago
if __name__ == '__main__':
4 weeks ago
ali_util = ALiYunUtil()
4 weeks ago
while True:
prompt = input("请输入问题(输入q退出): ")
if prompt.lower() == 'q':
break
4 weeks ago
answer = ali_util.chat(prompt)
print("回答:", answer)