点击新的对话没有响应
#860
Replies: 2 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
0 replies
-
|
希望您能提供具体的错误表现,“对话并不会全部清除”,那么哪些被清除了,哪些没被清除,还是没有相应?理论上不会有这个问题,js是为了清楚只读的对话历史……不应该注释掉 在我的测试中,本地模型的对话记录能够正常使用这个按钮清空。也许这个问题和gradio版本和python版本有关。 如果去掉js又可以了,maybe说明js的输入输出阻塞了Python代码的运行,应该会在终端有报错提示。 另外,可以把该段改为 emptyBtn.click(
reset,
inputs=[current_model],
outputs=[chatbot, status_display],
show_progress=True,
_js = 'clearHistoryHtml'
)试一试。 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
我部署在本地以后,在打开的页面中点击新的对话,对话并不会全部清除。不知道这个和我部署的是本地模型,删除了使用openai key相关的代码有没有关系?
Beta Was this translation helpful? Give feedback.
All reactions