You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[root@ry001 ChuanhuChatGPT]# python3 ChuanhuChatbot.py
2023-03-24 19:48:00,967 [INFO] [utils.py:295] 获取模板文件名列表
2023-03-24 19:48:00,968 [INFO] [utils.py:247] 获取文件名列表,目录为templates,文件类型为['.csv', 'json'],是否为纯文本列表True
2023-03-24 19:48:00,968 [INFO] [utils.py:269] 加载模板文件1 中文Prompts.json,模式为2(0为返回字典和下拉菜单,1为返回下拉菜单,2为返回字典)
2023-03-24 19:48:00,968 [INFO] [utils.py:271] Loading template...
2023-03-24 19:48:01,964 [WARNING] [utils.py:373] 无法获取IP地址信息。
{'error': True, 'reason': 'RateLimited', 'message': 'Visit https://ipapi.co/ratelimited/ for details'}
/usr/local/python3/lib/python3.8/site-packages/gradio/deprecation.py:43: UserWarning: You have unused kwarg parameters in Row, please remove them: {'scale': 1}
warnings.warn(
/usr/local/python3/lib/python3.8/site-packages/gradio/deprecation.py:43: UserWarning: You have unused kwarg parameters in Files, please remove them: {'multiple': True}
warnings.warn(
2023-03-24 19:48:01,977 [INFO] [utils.py:295] 获取模板文件名列表
2023-03-24 19:48:01,977 [INFO] [utils.py:247] 获取文件名列表,目录为templates,文件类型为['.csv', 'json'],是否为纯文本列表True
2023-03-24 19:48:01,977 [INFO] [utils.py:295] 获取模板文件名列表
2023-03-24 19:48:01,977 [INFO] [utils.py:247] 获取文件名列表,目录为templates,文件类型为['.csv', 'json'],是否为纯文本列表True
2023-03-24 19:48:01,978 [INFO] [utils.py:295] 获取模板文件名列表
2023-03-24 19:48:01,978 [INFO] [utils.py:247] 获取文件名列表,目录为templates,文件类型为['.csv', 'json'],是否为纯文本列表True
2023-03-24 19:48:01,978 [INFO] [utils.py:269] 加载模板文件1 中文Prompts.json,模式为1(0为返回字典和下拉菜单,1为返回下拉菜单,2为返回字典)
2023-03-24 19:48:01,978 [INFO] [utils.py:271] Loading template...
2023-03-24 19:48:01,990 [INFO] [utils.py:295] 获取模板文件名列表
2023-03-24 19:48:01,990 [INFO] [utils.py:247] 获取文件名列表,目录为templates,文件类型为['.csv', 'json'],是否为纯文本列表True
2023-03-24 19:48:01,990 [INFO] [utils.py:269] 加载模板文件1 中文Prompts.json,模式为1(0为返回字典和下拉菜单,1为返回下拉菜单,2为返回字典)
2023-03-24 19:48:01,990 [INFO] [utils.py:271] Loading template...
2023-03-24 19:48:02,002 [INFO] [utils.py:264] 获取历史记录文件名列表
2023-03-24 19:48:02,002 [INFO] [utils.py:247] 获取文件名列表,目录为history,文件类型为['.json'],是否为纯文本列表True
2023-03-24 19:48:02,002 [INFO] [utils.py:264] 获取历史记录文件名列表
2023-03-24 19:48:02,002 [INFO] [utils.py:247] 获取文件名列表,目录为history,文件类型为['.json'],是否为纯文本列表True
2023-03-24 19:48:02,042 [INFO] [ChuanhuChatbot.py:381]
川虎的温馨提示:访问 http://localhost:7860 查看界面
Reloading javascript...
Traceback (most recent call last):
File "/usr/local/python3/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/local/python3/lib/python3.8/site-packages/urllib3/connectionpool.py", line 449, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "/usr/local/python3/lib/python3.8/site-packages/urllib3/connectionpool.py", line 444, in _make_request
httplib_response = conn.getresponse()
File "/usr/local/python3/lib/python3.8/http/client.py", line 1322, in getresponse
response.begin()
File "/usr/local/python3/lib/python3.8/http/client.py", line 303, in begin
version, status, reason = self._read_status()
File "/usr/local/python3/lib/python3.8/http/client.py", line 272, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/python3/lib/python3.8/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/local/python3/lib/python3.8/site-packages/urllib3/connectionpool.py", line 787, in urlopen
retries = retries.increment(
File "/usr/local/python3/lib/python3.8/site-packages/urllib3/util/retry.py", line 550, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/local/python3/lib/python3.8/site-packages/urllib3/packages/six.py", line 769, in reraise
raise value.with_traceback(tb)
File "/usr/local/python3/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/local/python3/lib/python3.8/site-packages/urllib3/connectionpool.py", line 449, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "/usr/local/python3/lib/python3.8/site-packages/urllib3/connectionpool.py", line 444, in _make_request
httplib_response = conn.getresponse()
File "/usr/local/python3/lib/python3.8/http/client.py", line 1322, in getresponse
response.begin()
File "/usr/local/python3/lib/python3.8/http/client.py", line 303, in begin
version, status, reason = self._read_status()
File "/usr/local/python3/lib/python3.8/http/client.py", line 272, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "ChuanhuChatbot.py", line 417, in
demo.queue(concurrency_count=CONCURRENT_COUNT).launch(
File "/usr/local/python3/lib/python3.8/site-packages/gradio/blocks.py", line 1483, in launch
requests.get(f"{self.local_url}startup-events")
File "/usr/local/python3/lib/python3.8/site-packages/requests/api.py", line 73, in get
return request("get", url, params=params, **kwargs)
File "/usr/local/python3/lib/python3.8/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/python3/lib/python3.8/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/python3/lib/python3.8/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/local/python3/lib/python3.8/site-packages/requests/adapters.py", line 547, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
布署在内网服务器
export ALL_PROXY=socks5://127.0.0.1:7891
代理环境正常,测试访问外网成功
拜求各位老大的帮助
[root@ry001 ChuanhuChatGPT]# python3 ChuanhuChatbot.py
2023-03-24 19:48:00,967 [INFO] [utils.py:295] 获取模板文件名列表
2023-03-24 19:48:00,968 [INFO] [utils.py:247] 获取文件名列表,目录为templates,文件类型为['.csv', 'json'],是否为纯文本列表True
2023-03-24 19:48:00,968 [INFO] [utils.py:269] 加载模板文件1 中文Prompts.json,模式为2(0为返回字典和下拉菜单,1为返回下拉菜单,2为返回字典)
2023-03-24 19:48:00,968 [INFO] [utils.py:271] Loading template...
2023-03-24 19:48:01,964 [WARNING] [utils.py:373] 无法获取IP地址信息。
{'error': True, 'reason': 'RateLimited', 'message': 'Visit https://ipapi.co/ratelimited/ for details'}
/usr/local/python3/lib/python3.8/site-packages/gradio/deprecation.py:43: UserWarning: You have unused kwarg parameters in Row, please remove them: {'scale': 1}
warnings.warn(
/usr/local/python3/lib/python3.8/site-packages/gradio/deprecation.py:43: UserWarning: You have unused kwarg parameters in Files, please remove them: {'multiple': True}
warnings.warn(
2023-03-24 19:48:01,977 [INFO] [utils.py:295] 获取模板文件名列表
2023-03-24 19:48:01,977 [INFO] [utils.py:247] 获取文件名列表,目录为templates,文件类型为['.csv', 'json'],是否为纯文本列表True
2023-03-24 19:48:01,977 [INFO] [utils.py:295] 获取模板文件名列表
2023-03-24 19:48:01,977 [INFO] [utils.py:247] 获取文件名列表,目录为templates,文件类型为['.csv', 'json'],是否为纯文本列表True
2023-03-24 19:48:01,978 [INFO] [utils.py:295] 获取模板文件名列表
2023-03-24 19:48:01,978 [INFO] [utils.py:247] 获取文件名列表,目录为templates,文件类型为['.csv', 'json'],是否为纯文本列表True
2023-03-24 19:48:01,978 [INFO] [utils.py:269] 加载模板文件1 中文Prompts.json,模式为1(0为返回字典和下拉菜单,1为返回下拉菜单,2为返回字典)
2023-03-24 19:48:01,978 [INFO] [utils.py:271] Loading template...
2023-03-24 19:48:01,990 [INFO] [utils.py:295] 获取模板文件名列表
2023-03-24 19:48:01,990 [INFO] [utils.py:247] 获取文件名列表,目录为templates,文件类型为['.csv', 'json'],是否为纯文本列表True
2023-03-24 19:48:01,990 [INFO] [utils.py:269] 加载模板文件1 中文Prompts.json,模式为1(0为返回字典和下拉菜单,1为返回下拉菜单,2为返回字典)
2023-03-24 19:48:01,990 [INFO] [utils.py:271] Loading template...
2023-03-24 19:48:02,002 [INFO] [utils.py:264] 获取历史记录文件名列表
2023-03-24 19:48:02,002 [INFO] [utils.py:247] 获取文件名列表,目录为history,文件类型为['.json'],是否为纯文本列表True
2023-03-24 19:48:02,002 [INFO] [utils.py:264] 获取历史记录文件名列表
2023-03-24 19:48:02,002 [INFO] [utils.py:247] 获取文件名列表,目录为history,文件类型为['.json'],是否为纯文本列表True
2023-03-24 19:48:02,042 [INFO] [ChuanhuChatbot.py:381]
川虎的温馨提示:访问 http://localhost:7860 查看界面
Reloading javascript...
Traceback (most recent call last):
File "/usr/local/python3/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/local/python3/lib/python3.8/site-packages/urllib3/connectionpool.py", line 449, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "/usr/local/python3/lib/python3.8/site-packages/urllib3/connectionpool.py", line 444, in _make_request
httplib_response = conn.getresponse()
File "/usr/local/python3/lib/python3.8/http/client.py", line 1322, in getresponse
response.begin()
File "/usr/local/python3/lib/python3.8/http/client.py", line 303, in begin
version, status, reason = self._read_status()
File "/usr/local/python3/lib/python3.8/http/client.py", line 272, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/python3/lib/python3.8/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/local/python3/lib/python3.8/site-packages/urllib3/connectionpool.py", line 787, in urlopen
retries = retries.increment(
File "/usr/local/python3/lib/python3.8/site-packages/urllib3/util/retry.py", line 550, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/local/python3/lib/python3.8/site-packages/urllib3/packages/six.py", line 769, in reraise
raise value.with_traceback(tb)
File "/usr/local/python3/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/local/python3/lib/python3.8/site-packages/urllib3/connectionpool.py", line 449, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "/usr/local/python3/lib/python3.8/site-packages/urllib3/connectionpool.py", line 444, in _make_request
httplib_response = conn.getresponse()
File "/usr/local/python3/lib/python3.8/http/client.py", line 1322, in getresponse
response.begin()
File "/usr/local/python3/lib/python3.8/http/client.py", line 303, in begin
version, status, reason = self._read_status()
File "/usr/local/python3/lib/python3.8/http/client.py", line 272, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "ChuanhuChatbot.py", line 417, in
demo.queue(concurrency_count=CONCURRENT_COUNT).launch(
File "/usr/local/python3/lib/python3.8/site-packages/gradio/blocks.py", line 1483, in launch
requests.get(f"{self.local_url}startup-events")
File "/usr/local/python3/lib/python3.8/site-packages/requests/api.py", line 73, in get
return request("get", url, params=params, **kwargs)
File "/usr/local/python3/lib/python3.8/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/python3/lib/python3.8/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/python3/lib/python3.8/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/local/python3/lib/python3.8/site-packages/requests/adapters.py", line 547, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Beta Was this translation helpful? Give feedback.
All reactions