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

data from JavaScript to Chatbot component does not work #4264

Open
1 task done
deep-diver opened this issue May 18, 2023 · 0 comments
Open
1 task done

data from JavaScript to Chatbot component does not work #4264

deep-diver opened this issue May 18, 2023 · 0 comments
Labels
bug Something isn't working 💬 Chatbot Related to the Chatbot component

Comments

@deep-diver
Copy link

deep-diver commented May 18, 2023

Describe the bug

The values([["hello", "world"]] from JavaScript to Chatbot component in load` time are not displayed at all. I have checked the values are appropriately filled in the following ways:

  1. printed out just right before the return statement in JavaScript code.
  2. in my actual project, I update Chatbot UI when a user types text in. Initially, there is no chat history displayed, but after typing in any text, the accumulated all the texts appear.
  3. in the gradio version <3.29.0, this worked fine. However, after upgrading the version to >3.30.0, this doesn't work anymore.

Is there an existing issue for this?

  • I have searched the existing issues

Reproduction

fill_chatbot = """
function() {
    return [["hello", "world"]];
}
"""

with gr.Blocks() as block:
    chatbot = gr.Chatbot()

    block.load(
        None, None, chatbot, _js=fill_chatbot
    )

block.queue().launch()

Screenshot

No response

Logs

No error printed out

System Info

Colab with gradio installed through `pip install gradio`

Severity

annoying

@deep-diver deep-diver added the bug Something isn't working label May 18, 2023
@abidlabs abidlabs added this to the Component Cleanup milestone Jul 9, 2023
@abidlabs abidlabs removed this from the Component Cleanup milestone Jul 30, 2023
@abidlabs abidlabs added the 💬 Chatbot Related to the Chatbot component label Mar 15, 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 💬 Chatbot Related to the Chatbot component
2 participants