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

Jittery animiation when streaming to chat_interface.chatbot_value #10767

Open
1 task done
brycepg opened this issue Mar 9, 2025 · 1 comment
Open
1 task done

Jittery animiation when streaming to chat_interface.chatbot_value #10767

brycepg opened this issue Mar 9, 2025 · 1 comment
Labels
bug Something isn't working needs repro Awaiting full reproduction

Comments

@brycepg
Copy link
Contributor

brycepg commented Mar 9, 2025

Describe the bug

Image

Have you searched existing issues? 🔎

  • I have searched and found no existing issues

Reproduction

async def chat_fn_hidden_input(history: list[dict] = [], input_graph_state: dict = {}, uuid: Optional[UUID] = None, prompt: str = "", goal = "", user_input: str = ""):
    async for item in chat_fn(user_input, history, input_graph_state, uuid, prompt, goal):
        message, state, state2 = item
        yield (history + [{"role": "assistant", "content": message}]), state, state2
        start_button.click(show_chatbot, inputs=[], outputs=[chatbot], js=SHOW_CHATINTERFACE).then(
            fn=chat_fn_hidden_input,
            inputs=[
                chatbot,
                current_langgraph_state,
                current_uuid_state,
                prompt_textbox,
                goal_textbox,
            ],
            outputs=[
                chat_interface.chatbot_value,
                current_langgraph_state,
                end_of_assistant_response_state
            ],
        ).then(show_button, outputs=[build_prompt_button]).then(
            hide_button, outputs=[start_button]
        )

A more complete example is available upon request

Screenshot

No response

Logs

System Info

Gradio Environment Information:
------------------------------
Operating System: Windows
gradio version: 5.16.0
gradio_client version: 1.7.0

------------------------------------------------
gradio dependencies in your environment:

aiofiles: 23.2.1
anyio: 4.8.0
audioop-lts: 0.2.1
fastapi: 0.115.8
ffmpy: 0.5.0
gradio-client==1.7.0 is not installed.
httpx: 0.28.1
huggingface-hub: 0.28.1
jinja2: 3.1.5
markupsafe: 2.1.5
numpy: 2.2.3
orjson: 3.10.15
packaging: 24.2
pandas: 2.2.3
pillow: 11.1.0
pydantic: 2.10.6
pydub: 0.25.1
python-multipart: 0.0.20
pyyaml: 6.0.2
ruff: 0.9.6
safehttpx: 0.1.6
semantic-version: 2.10.0
starlette: 0.45.3
tomlkit: 0.13.2
typer: 0.15.1
typing-extensions: 4.12.2
urllib3: 2.3.0
uvicorn: 0.34.0
authlib; extra == 'oauth' is not installed.
itsdangerous; extra == 'oauth' is not installed.


gradio_client dependencies in your environment:

fsspec: 2025.2.0
httpx: 0.28.1
huggingface-hub: 0.28.1
packaging: 24.2
typing-extensions: 4.12.2
websockets: 14.2

Severity

I can work around it

@brycepg brycepg added the bug Something isn't working label Mar 9, 2025
@brycepg brycepg changed the title Jittery animiation when outputting to chat_interface.chatbot_value Jittery animiation when streaming to chat_interface.chatbot_value Mar 9, 2025
@abidlabs
Copy link
Member

abidlabs commented Mar 9, 2025

Hi @brycepg can you provide a complete minimal repro that we can use to reproduce the issue above? See: https://stackoverflow.com/help/minimal-reproducible-example

@abidlabs abidlabs added the needs repro Awaiting full reproduction label Mar 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 needs repro Awaiting full reproduction
Projects
None yet
Development

No branches or pull requests

2 participants