-
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
Expand gr.Chatbot()
functionality + Refactor Tracking Issue
#4800
Comments
To simplify the |
I do see value in |
I see what you mean, but the data structure can get messy fairly quickly. Especially when its tuples nested within lists of lists, and when files get involved. Also we have heard feedback, that the chatbot API is confusing, so I think something needs to be done to simplify it. Of course having the |
We'll need to be backwards compatible anyways since many users will continue to pass lists of data so I don't think this will get us out of it. Plus if someone is accessing the Chatbot via the Clients, they'll still get and pass data as lists of data, so again we'll need to fully support lists of data anyways.
The feedback I've seen (e.g. #3510) is that we need a simpler way to create a fully functioning Chatbot demo, not that handling the messages is complicated. I agree that nested lists can be slightly confusing, but this class makes things more verbose in my opinion. Here are some examples:
Imo, the value of the abstraction is just not there, and now a person has to look up the relevant functions in the documentation every time they need to do something new (e.g. how do I clear the message history) instead of building on their existing knowledge of python |
I see, yeah didn't consider the gradio client, plus the fact that we would still want the chatbot to be backwards compatible.
Also, makes sense that the abstraction isn't very useful for the simple functions listed above. Thanks for talking this thru! |
How is the progress on "Allow a developer to add various Gradio components in user/bot responses"? I have been trying to hack the But error occurs when |
I would also appreciate if I could add various gradio component as output. |
I've added a |
TODOs
Additional Chatbot Features
gr.Chatbot
#3769gr.Chatbot
messages #5250The text was updated successfully, but these errors were encountered: