我正在使用以下代码:
model = SentenceTransformer('bert-base-nli-mean-tokens')
body = list(data['preprocessedBody'])
bodyEmbedding = model.encode(body, show_progress_bar = True)但是,我得到了这个错误:
ProxyError: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /api/models/sentence-transformers/bert-base-nli-mean-tokens (Caused by ProxyError('Your proxy appears to only use HTTP and not HTTPS, try changing your proxy URL to be HTTP. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#https-proxy-error-http-proxy', SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1129)'))))
有什么解决办法吗?
谢谢您抽时间见我
发布于 2022-10-29 04:08:55
这只是一个代理问题。我刚刚将https和http以及它们的相对代理值添加到windows的系统环境中。
https://stackoverflow.com/questions/74228567
复制相似问题