-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Response options in gr.Chatbot
cause frozen / unexpected behavior in streaming scenarios.
#10102
Comments
Hmm I'm not able to reproduce exactly how you are describing? Is it just that the text is being returned extremely quickly from the backend? What happens if you add a If you can share a screen recording of the behavior you are seeing, that would be helpful. Thanks! |
2024-12-04.14-44-00.mp4Sure, the above is the video. The code I am running is the same as in production (with time.sleep(0.01) in the for loop). As you can see, the whole interface froze at the very end. Retry/Undo buttons are not active, and also the textbox itself is not interactive anymore. I just notice that if I change the yield statement in the for loop to add Hope it clarified things. Thanks! |
Ok yep I can repro this, thanks so much! Looking into this |
Should be fixed via #10123, if you'd like to test it out (see instructions in PR body) |
Works now! Thanks! |
Describe the bug
Related with new features merged in #9989. @abid
While the demo from that pull request works, the new feature actually doesn't work well for streaming scenarios.
One would expect to see the option buttons after the message is fully rendered. Instead, the options show up from the beginning.
Moreover, if one of yielded message doesn't provide
options
, it would cause theChatInterface
to freeze. See Reproduction.Have you searched existing issues? 🔎
Reproduction
Screenshot
No response
Logs
No response
System Info
Severity
I can work around it
The text was updated successfully, but these errors were encountered: