本文主要是介绍python出现远程服务器访问不了Hugging Face,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
OSError: We couldn’t connect to ‘https://huggingface.co’ to load this file, couldn’t find it in the cached files and it looks like stabilityai/sd-turbo is not the path to a directory containing a file named tokenizer/config.json.
解决方法:
在你运行文件添加os.environ["HF_ENDPOINT"] = "https://hf-mirror.com"
就可以快速解决
这篇关于python出现远程服务器访问不了Hugging Face的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!