Yet another paper reading assistant based on OpenAI ChatGPT API. An open-source version that attempts to reimplement ChatPDF. A different dialogue version of another ChatPaper project.
I am really sorry for opening another issue.
After I resolved the cuda trouble, I am having the following errors.
Frontend
2023-04-07 15:10:00.952 Uncaught app exception
Traceback (most recent call last):
File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/site-packages/urllib3/connectionpool.py", line 449, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/site-packages/urllib3/connectionpool.py", line 444, in _make_request
httplib_response = conn.getresponse()
File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/http/client.py", line 1377, in getresponse
response.begin()
File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/http/client.py", line 320, in begin
version, status, reason = self._read_status()
File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/http/client.py", line 289, 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 "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/site-packages/urllib3/connectionpool.py", line 787, in urlopen
retries = retries.increment(
File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/site-packages/urllib3/util/retry.py", line 550, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/site-packages/urllib3/packages/six.py", line 769, in reraise
raise value.with_traceback(tb)
File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/site-packages/urllib3/connectionpool.py", line 449, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/site-packages/urllib3/connectionpool.py", line 444, in _make_request
httplib_response = conn.getresponse()
File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/http/client.py", line 1377, in getresponse
response.begin()
File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/http/client.py", line 320, in begin
version, status, reason = self._read_status()
File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/http/client.py", line 289, 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 "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
exec(code, module.dict)
File "/home/matt_song/projects/openchat/frontend.py", line 98, in
response = requests.post(
File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/site-packages/requests/api.py", line 115, in post
return request("post", url, data=data, json=json, kwargs)
File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, kwargs)
File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, send_kwargs)
File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, kwargs)
File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/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'))
Backend
user_stamp 20230407_150850 user_query summarize
User 20230407_150850 not in pool, creating new chatpdf
Detected change in '/home/matt_song/anaconda3/envs/openchat/lib/python3.9/site-packages/bs4/builder/init.py', reloading
/home/matt_song/anaconda3/envs/openchat/lib/python3.9/site-packages/bs4/builder/init.py:545: XMLParsedAsHTMLWarning: It looks like you're parsing an XML document using an HTML parser. If this really is an HTML document (maybe it's XHTML?), you can ignore or filter this warning. If it's XML, you should know that using an XML parser will be more reliable. To parse this document as XML, make sure you have the lxml package installed, and pass the keyword argument features="xml" into the BeautifulSoup constructor.
warnings.warn(
I am really sorry for opening another issue. After I resolved the cuda trouble, I am having the following errors.
Frontend
2023-04-07 15:10:00.952 Uncaught app exception Traceback (most recent call last): File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/site-packages/urllib3/connectionpool.py", line 703, in urlopen httplib_response = self._make_request( File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/site-packages/urllib3/connectionpool.py", line 449, in _make_request six.raise_from(e, None) File "", line 3, in raise_from
File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/site-packages/urllib3/connectionpool.py", line 444, in _make_request
httplib_response = conn.getresponse()
File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/http/client.py", line 1377, in getresponse
response.begin()
File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/http/client.py", line 320, in begin
version, status, reason = self._read_status()
File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/http/client.py", line 289, 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 "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/site-packages/requests/adapters.py", line 489, in send resp = conn.urlopen( File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/site-packages/urllib3/connectionpool.py", line 787, in urlopen retries = retries.increment( File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/site-packages/urllib3/util/retry.py", line 550, in increment raise six.reraise(type(error), error, _stacktrace) File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/site-packages/urllib3/packages/six.py", line 769, in reraise raise value.with_traceback(tb) File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/site-packages/urllib3/connectionpool.py", line 703, in urlopen httplib_response = self._make_request( File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/site-packages/urllib3/connectionpool.py", line 449, in _make_request six.raise_from(e, None) File "", line 3, in raise_from
File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/site-packages/urllib3/connectionpool.py", line 444, in _make_request
httplib_response = conn.getresponse()
File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/http/client.py", line 1377, in getresponse
response.begin()
File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/http/client.py", line 320, in begin
version, status, reason = self._read_status()
File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/http/client.py", line 289, 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 "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script exec(code, module.dict) File "/home/matt_song/projects/openchat/frontend.py", line 98, in
response = requests.post(
File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/site-packages/requests/api.py", line 115, in post
return request("post", url, data=data, json=json, kwargs)
File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, kwargs)
File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, send_kwargs)
File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, kwargs)
File "/home/matt_song/anaconda3/envs/openchat/lib/python3.9/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'))
Backend
user_stamp 20230407_150850 user_query summarize User 20230407_150850 not in pool, creating new chatpdf Detected change in '/home/matt_song/anaconda3/envs/openchat/lib/python3.9/site-packages/bs4/builder/init.py', reloading /home/matt_song/anaconda3/envs/openchat/lib/python3.9/site-packages/bs4/builder/init.py:545: XMLParsedAsHTMLWarning: It looks like you're parsing an XML document using an HTML parser. If this really is an HTML document (maybe it's XHTML?), you can ignore or filter this warning. If it's XML, you should know that using an XML parser will be more reliable. To parse this document as XML, make sure you have the lxml package installed, and pass the keyword argument
features="xml"
into the BeautifulSoup constructor. warnings.warn(