Open SingL3 opened 12 months ago
Hi, apologies for the late follow up. We haven't had a chance to look into this issue, but the Gradio codebase has changed quite significantly since this issue was created. Could you let us know if this is still an issue in the latest version of Gradio (pip install --upgrade gradio
)? Thanks!
Describe the bug
I am trying to add a
Textbox
to theChatInterface
for langchain application. I add aself.context_textbox
to the class and add it to the output of the submit chain:https://github.com/gradio-app/gradio/blob/8241f9a7bd034256aabb9efa9acb9e36216557ac/gradio/chat_interface.py#L255-L277
And I have modified the submit_fn to yeild 3 outputs: https://github.com/gradio-app/gradio/blob/8241f9a7bd034256aabb9efa9acb9e36216557ac/gradio/chat_interface.py#L395-L445
And I got the following error when launch:
However, I modified the
_setup_stop_events
function to:The only difference with the original function is that there is a
submit
in the args and it can run successfully. Why is that?Have you searched existing issues? đ
Reproduction
Screenshot
No response
Logs
System Info
Severity
I can work around it