print('Welcome to XrayGLM model. Enter an image URL or local file path to load an image. Continue inputting text to engage in a conversation. Type "clear" to start over, or "stop" to end the program.')
withtorch.no_grad():
whileTrue:
history=None
cache_image=None
ifnotargs.english:
image_path=input("请输入图像路径或URL(回车进入纯文本对话): ")
else:
image_path=input("Please enter the image path or URL (press Enter for plain text conversation): ")