Closed ryancurry-mz closed 7 months ago
🤖
Hey there, @ryancurry-mz! 🚀 Glad to see you back! Ran into another hiccup, huh? Let's see what we can do about it this time.
Based on the information you've provided and the similar issues I found in the Langchain-Chatchat repository, there are a few potential solutions to the "DuplicateWidgetID" error you're encountering.
Firstly, the error message "There are multiple widgets with the same key=''
" suggests that there might be multiple Streamlit widgets using the same key
, which is not allowed. The key
parameter in Streamlit widgets is used to uniquely identify a widget. If the key
parameter is not provided, Streamlit will use the widget's label as the key. However, if there are multiple widgets with the same label, Streamlit will throw an error. To avoid this, you can provide a unique key
for each widget. You can check the dialogue_page
function in the code where the streamlit_feedback
function is called, and ensure that each time it is called, the message_id
is unique. If the issue persists, further examination of the dialogue_page
function and the streamlit_feedback
module may be necessary. You can refer to this issue for more details.
Secondly, you might want to ensure that the model names in model_config.py
match the actual names used when loading models with fastchat. This was suggested by a user who encountered a similar error and resolved it by aligning the names. You can refer to this issue for more details.
Thirdly, you might want to consider updating your software to a newer version. A user suggested updating to version 0.2.8 or higher, and since you're using version v2.0.8, you might want to consider updating to the latest version, which is v0.2.10.
Lastly, you might want to consider upgrading PyTorch to version 2.2.0. One user reported that this resolved the issue when using the CPU to load local models. You can refer to this issue for more details.
Unfortunately, I wasn't able to find the exact changes made in the Langchain-Chatchat codebase between versions v2.0.8 and v0.2.10 that could potentially resolve the "DuplicateWidgetID" error. However, updating to the latest version might include bug fixes that could potentially resolve your issue.
I hope this helps! If you have any other questions or need further clarification, feel free to ask.
排查后发现是,feedback部分代码的问题。 未解决,但是注释掉这段代码就不报错了。 dialogue.py
这个问题已经被标记为 stale
,因为它已经超过 30 天没有任何活动。
兄弟,看了你的解决方案后,又出现这种问题有解决方法吗?
这个是服务端状态
这个问题我也遇到了,但是调整了显存之后就解决了,可能是因为显存不够的原因。
问题描述 / Problem Description 第二次对话回答结束后,报错。 参考了其他issue的解决方案,仍未解决。 例如: 1.首次未回复,第二次才报错,我这边两遍都是正常回复。 2.利用cpu启动,我这边是用gpu
请问有人遇到类似的问题吗?请赐教!
环境信息 / Environment Information
附加信息 / Additional Information
完整报错信息