Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no way to use proxy to download the model,and can not ommit the downloading process though already put the model in models dir #81

Open
zjmwqx opened this issue Sep 14, 2024 · 0 comments

Comments

@zjmwqx
Copy link

zjmwqx commented Sep 14, 2024

i have a walk around to share :
change code in pysssss.py
from:
async with session.get(url, proxy=proxy) as response:

to :
proxy = os.environ.get('ALL_PROXY') # 从环境变量获取代理地址

如果未设置环境变量,您也可以直接指定代理地址,例如:

proxy = 'http://127.0.0.1:XXXX'

async with session.get(url, proxy=proxy) as response:

it works so far

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant