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

无法使用图嵌入 #110

Open
cutecharmingkid opened this issue Nov 24, 2023 · 1 comment
Open

无法使用图嵌入 #110

cutecharmingkid opened this issue Nov 24, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@cutecharmingkid
Copy link

🐛 bug 说明

运行下列代码时发生了报错:
from sentence_transformers import SentenceTransformer

model = SentenceTransformer("moka-ai/m3e-base")
embeddings = model.encode(['Hello World!', '你好,世界!'])

报错信息如下:

Traceback (most recent call last):
File "D:\ANACONDA\envs\dream\lib\site-packages\urllib3\connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "D:\ANACONDA\envs\dream\lib\site-packages\urllib3\connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "D:\ANACONDA\envs\dream\lib\site-packages\urllib3\connectionpool.py", line 1040, in validate_conn
conn.connect()
File "D:\ANACONDA\envs\dream\lib\site-packages\urllib3\connection.py", line 414, in connect
self.sock = ssl_wrap_socket(
File "D:\ANACONDA\envs\dream\lib\site-packages\urllib3\util\ssl
.py", line 449, in ssl_wrap_socket
ssl_sock = ssl_wrap_socket_impl(
File "D:\ANACONDA\envs\dream\lib\site-packages\urllib3\util\ssl
.py", line 493, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
File "D:\ANACONDA\envs\dream\lib\ssl.py", line 500, in wrap_socket
return self.sslsocket_class._create(
File "D:\ANACONDA\envs\dream\lib\ssl.py", line 1040, in _create
self.do_handshake()
File "D:\ANACONDA\envs\dream\lib\ssl.py", line 1309, in do_handshake
self._sslobj.do_handshake()
ConnectionResetError: [WinError 10054] 远程主机强迫关闭了一个现有的连接。

Python Version

None

@cutecharmingkid cutecharmingkid added the bug Something isn't working label Nov 24, 2023
@wangyuxinwhy
Copy link
Owner

看起来是网络的原因

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants