StreamlitAPIException: The default value 5000 must be less than or equal to the max_value 1000
Traceback:
File "path/to/Langchain-Chatchat/libs/chatchat-server/chatchat/webui.py", line 69, in <module>
knowledge_base_page(api=api, is_lite=is_lite)
File "path/to/Langchain-Chatchat/libs/chatchat-server/chatchat/webui_pages/knowledge_base/knowledge_base.py", line 182, in knowledge_base_page
chunk_size = cols[0].number_input("单段文本最大长度:", min_value=1, max_value=6000, value=Settings.kb_settings.CHUNK_SIZE)
大佬,我希望知识库文档切割最大字数自定义设置,但是在如下代码中设置不生效?已经查询过其他issue相关解决方案:如链接,但还是不行?请问该如何设置?
报如下错误
从报错提示看,streamlit即使设置了最大值6000,但还是不知道哪里默认设置了最大值1000,期待回复。