Open ydshieh opened 1 year ago
Can repro, thanks for creating the issue @ydshieh -- we'll look into it!
Hi, apologies for the late follow up. We haven't had a chance to look into this issue, but the Gradio codebase has changed quite significantly since this issue was created. Could you let us know if this is still an issue in the latest version of Gradio (pip install --upgrade gradio
)? Thanks!
I am not able to use update
and style
attributes anymore. When I remove them and just use gr.HighlightedText
, it doesn't change the labels at all.
Describe the bug
When using
gr.HighlightedText.update
to update itscolor_map
, if the newcolor_map
remove some keys from the originalcolor_map
, those deleted labels is still displayed.See
Reproduction
.Have you searched existing issues? 🔎
Reproduction
Colab
(running on Colab)
Click the first
radio
component to see things showing, then click the secondradio
component to changecolor_map
. It's easy to see the deleted labels are not removed from the display.Screenshot
No response
Logs
No response
System Info
Severity
I can work around it