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

Option "editable" in gr.Chatbot could only work for the first message in a group of consecutive messages. #10320

Open
1 task done
tankgit opened this issue Jan 9, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@tankgit
Copy link

tankgit commented Jan 9, 2025

Describe the bug

Option "editable" in gr.Chatbot could only work for the first message in a group of consecutive messages.

Have you searched existing issues? 🔎

  • I have searched and found no existing issues

Reproduction

import gradio as gr

examples = [
    {"role": "user", "content": "User message 1."},
    {"role": "user", "content": "User message 2."},
    {
        "role": "assistant",
        "content": "This is a plain text.",
    },
]

with gr.Blocks() as demo:
    chatbot = gr.Chatbot(
        type="messages",
        editable="all",
        group_consecutive_messages=False,
    )

    demo.load(lambda: examples, None, chatbot)


demo.launch(server_name="0.0.0.0", server_port=19011)

Screenshot

recording

Logs

No response

System Info

Gradio==5.10.0
Python==3.10.14

Severity

Blocking usage of gradio

@tankgit tankgit added the bug Something isn't working label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant