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

ChatInterface displays errors using custom chatbox and save_history #10645

Open
1 task done
eaxts opened this issue Feb 21, 2025 · 0 comments
Open
1 task done

ChatInterface displays errors using custom chatbox and save_history #10645

eaxts opened this issue Feb 21, 2025 · 0 comments
Labels
bug Something isn't working 💬 Chatbot Related to the Chatbot component

Comments

@eaxts
Copy link

eaxts commented Feb 21, 2025

Describe the bug

ChatInterface displays errors using custom chatbox and save_history

Have you searched existing issues? 🔎

  • I have searched and found no existing issues

Reproduction

import gradio as gr

def yes(message, history):
    return "yes"

def vote(data: gr.LikeData):
    if data.liked:
        print("You upvoted this response: " + data.value["value"])
    else:
        print("You downvoted this response: " + data.value["value"])

with gr.Blocks() as demo:
    chatbot = gr.Chatbot(placeholder="<strong>Your Personal Yes-Man</strong><br>Ask Me Anything")
    chatbot.like(vote, None, None)
    gr.ChatInterface(fn=yes, type="messages",save_history=True, chatbot=chatbot)
    
demo.launch()

Screenshot

Image

Logs

System Info

Operating System: Windows
gradio version: 5.17.0
gradio_client version: 1.7.1

Severity

I can work around it

@eaxts eaxts added the bug Something isn't working label Feb 21, 2025
@abidlabs abidlabs added the 💬 Chatbot Related to the Chatbot component label Feb 21, 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 💬 Chatbot Related to the Chatbot component
Projects
None yet
Development

No branches or pull requests

2 participants