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
问题描述
按“开发环境准备”章节成功完成环境配置及Langchain-Chatchat安装后,运行Webui python webui.py,报错:
Langchain-Chatchat]# python webui.py
2023-08-31 10:09:53.053 WARNING streamlit.runtime.state.session_state_proxy: Session state does not function when running a script without streamlit run
2023-08-31 10:09:53.058
Warning: to view this Streamlit app on a browser, run it with the following
command:
streamlit run webui.py [ARGUMENTS]
Traceback (most recent call last):
File "/opt/Langchain-Chatchat/webui.py", line 70, in
pages[selected_page]"func"
File "/opt/Langchain-Chatchat/webui_pages/dialogue/dialogue.py", line 40, in dialogue_page
chat_box.init_session()
File "/root/miniconda3/envs/langchin-chatglm01/lib/python3.10/site-packages/streamlit_chatbox/messages.py", line 35, in init_session
self.reset_history(self._chat_name)
File "/root/miniconda3/envs/langchin-chatglm01/lib/python3.10/site-packages/streamlit_chatbox/messages.py", line 38, in reset_history
assert self.chat_inited, "please call init_session first"
AssertionError: please call init_session first
问题描述
按“开发环境准备”章节成功完成环境配置及Langchain-Chatchat安装后,运行Webui python webui.py,报错:
Langchain-Chatchat]# python webui.py
2023-08-31 10:09:53.053 WARNING streamlit.runtime.state.session_state_proxy: Session state does not function when running a script without
streamlit run
2023-08-31 10:09:53.058
Warning: to view this Streamlit app on a browser, run it with the following
command:
streamlit run webui.py [ARGUMENTS]
Traceback (most recent call last):
File "/opt/Langchain-Chatchat/webui.py", line 70, in
pages[selected_page]"func"
File "/opt/Langchain-Chatchat/webui_pages/dialogue/dialogue.py", line 40, in dialogue_page
chat_box.init_session()
File "/root/miniconda3/envs/langchin-chatglm01/lib/python3.10/site-packages/streamlit_chatbox/messages.py", line 35, in init_session
self.reset_history(self._chat_name)
File "/root/miniconda3/envs/langchin-chatglm01/lib/python3.10/site-packages/streamlit_chatbox/messages.py", line 38, in reset_history
assert self.chat_inited, "please call init_session first"
AssertionError: please call init_session first
复现问题的步骤
报错,根据提示ip install setuptools_scm后,再执行pip install -r requirements.txt成功
*预期的结果
成功运行python webui.py
实际结果
报错.
**环境信息 **
The text was updated successfully, but these errors were encountered: