Coder Social home page Coder Social logo

chatbot's Introduction

Unexpected error from cudaGetDeviceCount(). Did you run some cuda functions before calling NumCudaDevices() that might have already set an error? Error 804: forward compatibility was attempted on non supported HW Starting LLM API Service...

Waiting for LLM API Service to start up. Starting Chatchat API Service... Waiting for Chatchat API Service to start up. Waiting for Chatchat API Service to start up. Starting WebUI Service...

You can now view your Streamlit app in your browser.

Network URL: http://172.17.0.3:8501 External URL: http://113.207.111.143:8501


2023-09-05 12:00:12,865 - _client.py[line:1013] - INFO: HTTP Request: POST http: //127.0.0.1:7861/chat/knowledge_base_chat "HTTP/1.1 200 OK" 2023-09-05 12:00:20.315 Uncaught app exception Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/httpcore/_exceptions.py", line 1 0, in map_exceptions yield File "/usr/local/lib/python3.10/dist-packages/httpcore/_sync/http11.py", line 197, in _receive_event event = self._h11_state.next_event() File "/usr/local/lib/python3.10/dist-packages/h11/_connection.py", line 469, i n next_event event = self._extract_next_receive_event() File "/usr/local/lib/python3.10/dist-packages/h11/_connection.py", line 419, i n _extract_next_receive_event event = self._reader.read_eof() # type: ignore[attr-defined] File "/usr/local/lib/python3.10/dist-packages/h11/_readers.py", line 204, in r ead_eof raise RemoteProtocolError( h11._util.RemoteProtocolError: peer closed connection without sending complete m essage body (incomplete chunked read)

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/httpx/_transports/default.py", l ine 60, in map_httpcore_exceptions yield File "/usr/local/lib/python3.10/dist-packages/httpx/_transports/default.py", l ine 104, in iter for part in self._httpcore_stream: File "/usr/local/lib/python3.10/dist-packages/httpcore/_sync/connection_pool.p y", line 347, in iter for part in self._stream: File "/usr/local/lib/python3.10/dist-packages/httpcore/_sync/http11.py", line 325, in iter raise exc File "/usr/local/lib/python3.10/dist-packages/httpcore/_sync/http11.py", line 317, in iter for chunk in self._connection._receive_response_body(**kwargs): File "/usr/local/lib/python3.10/dist-packages/httpcore/_sync/http11.py", line 186, in _receive_response_body event = self._receive_event(timeout=timeout) File "/usr/local/lib/python3.10/dist-packages/httpcore/_sync/http11.py", line 196, in _receive_event with map_exceptions({h11.RemoteProtocolError: RemoteProtocolError}): File "/usr/lib/python3.10/contextlib.py", line 153, in exit self.gen.throw(typ, value, traceback) File "/usr/local/lib/python3.10/dist-packages/httpcore/_exceptions.py", line 1 4, in map_exceptions raise to_exc(exc) from exc httpcore.RemoteProtocolError: peer closed connection without sending complete me ssage body (incomplete chunked read)

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/streamlit/runtime/scriptrunner/s cript_runner.py", line 552, in _run_script exec(code, module.dict) File "/langchain-ChatGLM-dev/webui.py", line 57, in pages[selected_page]"func" File "/langchain-ChatGLM-dev/webui_pages/dialogue/dialogue.py", line 112, in d ialogue_page for d in api.knowledge_base_chat(prompt, selected_kb, kb_top_k, history): File "/langchain-ChatGLM-dev/webui_pages/utils.py", line 211, in _httpx_stream 2generator for chunk in r.iter_text(None): File "/usr/local/lib/python3.10/dist-packages/httpx/_models.py", line 844, in iter_text for byte_content in self.iter_bytes(): File "/usr/local/lib/python3.10/dist-packages/httpx/_models.py", line 823, in iter_bytes for raw_bytes in self.iter_raw(): File "/usr/local/lib/python3.10/dist-packages/httpx/_models.py", line 881, in iter_raw for raw_stream_bytes in self.stream: File "/usr/local/lib/python3.10/dist-packages/httpx/_client.py", line 123, in iter for chunk in self._stream: File "/usr/local/lib/python3.10/dist-packages/httpx/_transports/default.py", l ine 103, in iter with map_httpcore_exceptions(): File "/usr/lib/python3.10/contextlib.py", line 153, in exit self.gen.throw(typ, value, traceback) File "/usr/local/lib/python3.10/dist-packages/httpx/_transports/default.py", l ine 77, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.RemoteProtocolError: peer closed connection without sending complete messa ge body (incomplete chunked read) 2023-09-05 12:00:32,437 - _client.py[line:1013] - INFO: HTTP Request: POST http: //127.0.0.1:7861/chat/chat "HTTP/1.1 200 OK" 2023-09-05 12:04:14,143 - _client.py[line:1013] - INFO: HTTP Request: POST http://127.0.0.1:7861/chat/chat "HTTP/1.1 200 OK" 2023-09-05 12:04:44.181 Uncaught app exception Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script exec(code, module.dict) File "/langchain-ChatGLM-dev/webui.py", line 57, in pages[selected_page]"func" File "/langchain-ChatGLM-dev/webui_pages/dialogue/dialogue.py", line 104, in dialogue_page chat_box.update_msg(text, streaming=False) # 更新最终的字符串,去除光标 File "/usr/local/lib/python3.10/dist-packages/streamlit_chatbox/messages.py", line 191, in update_msg old_element = self.history[history_index]["elements"][element_index] File "/usr/local/lib/python3.10/dist-packages/streamlit_chatbox/messages.py", line 64, in history return st.session_state.get(self._session_key).get(self._chat_name) AttributeError: 'NoneType' object has no attribute 'get'


^[2023-09-05 12:13:09,812 - _client.py[line:1013] - INFO: HTTP Request: POST http://127.0.0.1:7861/chat/chat "HTTP/1.1 200 OK" 2023-09-05 12:13:58,924 - _client.py[line:1013] - INFO: HTTP Request: POST http://127.0.0.1:7861/knowledge_base/upload_doc "HTTP/1.1 500 Internal Server Error" 2023-09-05 12:13:58.926 Uncaught app exception Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script exec(code, module.dict) File "/langchain-ChatGLM-dev/webui.py", line 57, in pages[selected_page]"func" File "/langchain-ChatGLM-dev/webui_pages/knowledge_base/knowledge_base.py", line 124, in knowledge_base_page ret = api.upload_kb_doc(f, kb) File "/langchain-ChatGLM-dev/webui_pages/utils.py", line 480, in upload_kb_doc return response.json() File "/usr/local/lib/python3.10/dist-packages/httpx/_models.py", line 756, in json return jsonlib.loads(self.text, **kwargs) File "/usr/lib/python3.10/json/init.py", line 346, in loads return _default_decoder.decode(s) File "/usr/lib/python3.10/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.10/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)


File "/usr/local/lib/python3.10/dist-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.RemoteProtocolError: peer closed connection without sending complete message body (incomplete chunked read)

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script exec(code, module.dict) File "/langchain-ChatGLM-dev/webui.py", line 57, in pages[selected_page]"func" File "/langchain-ChatGLM-dev/webui_pages/dialogue/dialogue.py", line 112, in dialogue_page for d in api.knowledge_base_chat(prompt, selected_kb, kb_top_k, history): File "/langchain-ChatGLM-dev/webui_pages/utils.py", line 211, in _httpx_stream2generator for chunk in r.iter_text(None): File "/usr/local/lib/python3.10/dist-packages/httpx/_models.py", line 844, in iter_text for byte_content in self.iter_bytes(): File "/usr/local/lib/python3.10/dist-packages/httpx/_models.py", line 823, in iter_bytes for raw_bytes in self.iter_raw(): File "/usr/local/lib/python3.10/dist-packages/httpx/_models.py", line 881, in iter_raw for raw_stream_bytes in self.stream: File "/usr/local/lib/python3.10/dist-packages/httpx/_client.py", line 123, in iter for chunk in self._stream: File "/usr/local/lib/python3.10/dist-packages/httpx/_transports/default.py", line 103, in iter with map_httpcore_exceptions(): File "/usr/lib/python3.10/contextlib.py", line 153, in exit self.gen.throw(typ, value, traceback) File "/usr/local/lib/python3.10/dist-packages/httpx/_transports/default.py", line 77, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.RemoteProtocolError: peer closed connection without sending complete message body (incomplete chunked read) 2023-09-06 02:52:50.133 Uncaught app exception Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script exec(code, module.dict) File "/langchain-ChatGLM-dev/webui.py", line 57, in pages[selected_page]"func" File "/langchain-ChatGLM-dev/webui_pages/dialogue/dialogue.py", line 104, in dialogue_page chat_box.update_msg(text, streaming=False) # 更新最终的字符串,去除光标 File "/usr/local/lib/python3.10/dist-packages/streamlit_chatbox/messages.py", line 191, in update_msg old_element = self.history[history_index]["elements"][element_index] File "/usr/local/lib/python3.10/dist-packages/streamlit_chatbox/messages.py", line 64, in history return st.session_state.get(self._session_key).get(self._chat_name) AttributeError: 'NoneType' object has no attribute 'get'

chatbot's People

Contributors

superwbb007 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.