solve <SimSun.ttf> file loading issue
the line < if not os.path.exists('SimSun.ttf): > will actually check the path under the running script rather than the model path.
Important Note: i can't test this code because any modification to local file will be overwritten by online version when using <trust_remote_code=True>, and it throws error when i do <trust_remote_code=False> :
ValueError: The repository for /Qwen-VL-Chat contains custom code which must be executed to correctly load the model. You can inspect the repository content at https://hf.co/Qwen-VL-Chat.
Please pass the argument trust_remote_code=True
to allow custom code to be run.
So this PR is only a suggestion by a tourist who does NOT responsible for this repository, and this PR should be checked before being merged. OR, if I missed sth and made a mistake, I am happy to know it.