Langchain-Chatchat
Langchain-Chatchat copied to clipboard
AttributeError: 'Chatbot' object has no attribute 'value'
Traceback (most recent call last):
File "/home/heyiheng/work/langchain/langchain-ChatGLM/webui.py", line 155, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/heyiheng/work/langchain/langchain-ChatGLM/webui.py", line 149, in
请问gradio版本是?
02 @.***>于2023年4月26日 周三17:18写道:
Traceback (most recent call last): File "/home/heyiheng/work/langchain/langchain-ChatGLM/webui.py", line 155, in chatbot = gr.Chatbot([[None, init_message], [None, model_status.value]], File "/home/young/anaconda3/envs/sakura/lib/python3.10/site-packages/gradio/components.py", line 3862, in init IOComponent.init( File "/home/young/anaconda3/envs/sakura/lib/python3.10/site-packages/gradio/components.py", line 185, in init else self.postprocess(initial_value) File "/home/young/anaconda3/envs/sakura/lib/python3.10/site-packages/gradio/components.py", line 3908, in postprocess y[i] = (self.md.render(message), self.md.render(response)) File "/home/young/anaconda3/envs/sakura/lib/python3.10/site-packages/markdown_it/main.py", line 267, in render return self.renderer.render(self.parse(src, env), self.options, env) File "/home/young/anaconda3/envs/sakura/lib/python3.10/site-packages/markdown_it/main.py", line 250, in parse raise TypeError(f"Input data should be a string, not {type(src)}") TypeError: Input data should be a string, not <class 'NoneType'>
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/heyiheng/work/langchain/langchain-ChatGLM/webui.py", line 149, in with gr.Blocks(css=block_css) as demo: File "/home/young/anaconda3/envs/sakura/lib/python3.10/site-packages/gradio/blocks.py", line 1097, in exit self.config = self.get_config_file() File "/home/young/anaconda3/envs/sakura/lib/python3.10/site-packages/gradio/blocks.py", line 1073, in get_config_file "props": utils.delete_none(block.get_config()) File "/home/young/anaconda3/envs/sakura/lib/python3.10/site-packages/gradio/components.py", line 3875, in get_config "value": self.value, AttributeError: 'Chatbot' object has no attribute 'value'
— Reply to this email directly, view it on GitHub https://github.com/imClumsyPanda/langchain-ChatGLM/issues/177, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLH5EUALIO4HYSZHX666UDXDDR53ANCNFSM6AAAAAAXMEVPEY . You are receiving this because you are subscribed to this thread.Message ID: @.***>
更换了gradio版本,解决了