h2oai / wave

Realtime Web Apps and Dashboards for Python and R
https://wave.h2o.ai
Apache License 2.0
3.9k stars 324 forks source link

Chatbot card is flickering while streaming code #2064

Closed maxjeblick closed 1 year ago

maxjeblick commented 1 year ago

Wave SDK Version, OS

0.26.0, Ubuntu, firefox.

Actual behavior

When using the ui.chatbot_card, rendered code is flickering when streaming is enabled. More precisely, the code changes between being colored most of the times and being pure white for a split second .

Screenshot 2023-07-05 at 11-24-42 Screenshot from 2023-07-05 11-21-55 png (PNG Image 4384 × 2466 pixels) — Scaled (45%) Screenshot 2023-07-05 at 11-24-23 Screenshot from 2023-07-05 11-21-42 png (PNG Image 4384 × 2466 pixels) — Scaled (45%)

Expected behavior

Card is not flickering.

Steps To Reproduce

I used H2O LLM Studio chat's window for this, see screenshots above. Model is h2oai/h2ogpt-gm-oasst1-en-2048-falcon-7b-v3, the experiment was run with no additional training (training epochs==0). A simple streaming example with appropriate code cell output should also reproduce this issue.

mturoci commented 1 year ago

Thanks for reporting @maxjeblick!