Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stop btn click event with cancels do NOT execute then #10251

Open
1 task done
liaoweiguo opened this issue Dec 25, 2024 · 1 comment
Open
1 task done

stop btn click event with cancels do NOT execute then #10251

liaoweiguo opened this issue Dec 25, 2024 · 1 comment
Labels
bug Something isn't working needs repro Awaiting full reproduction

Comments

@liaoweiguo
Copy link

Describe the bug

I have a long RAG app, sometimes the llm loop output, I have a button to cancel, and then save the looped output, something like:

        stop_btn.click(fn=None,inputs=None,cancels=[submit_event]).then(fn=store_chat,inputs=[chatbot])

but the store_chat never run

Have you searched existing issues? 🔎

  • I have searched and found no existing issues

Reproduction

import gradio as gr
...

        stop_btn.click(fn=None,inputs=None,cancels=[submit_event, query_event]).then(fn=store_chat,inputs=[chatbot])
...

Screenshot

No response

Logs

No response

System Info

macOS gradio 5.6.0

Severity

I can work around it

@liaoweiguo liaoweiguo added the bug Something isn't working label Dec 25, 2024
@abidlabs
Copy link
Member

Hi @liaoweiguo would you kindly be able to try the latest version of Gradio (5.9.1)? If that doesn't work, can you please provide a minimal code example that we can use to reproduce the issue above? See: https://stackoverflow.com/help/minimal-reproducible-example

@abidlabs abidlabs added the needs repro Awaiting full reproduction label Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs repro Awaiting full reproduction
Projects
None yet
Development

No branches or pull requests

2 participants