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

HighlightedText show_label=False doesn't work #9960

Open
1 task done
sthemeow opened this issue Nov 14, 2024 · 1 comment
Open
1 task done

HighlightedText show_label=False doesn't work #9960

sthemeow opened this issue Nov 14, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@sthemeow
Copy link
Contributor

Describe the bug

show_label=False doesn't work on HighlightedTextm, though it can be hidden by setting label="".

Have you searched existing issues? 🔎

  • I have searched and found no existing issues

Reproduction

import gradio as gr


with gr.Blocks(theme=gr.themes.Ocean()) as demo:
    gr.HighlightedText(
        value=[["UK", "+"], ["USA", "-"], ["China", "*"], ["Australia", "*"]],
        show_legend=True,
        show_label=False,
        # label='',
        color_map={"*": "yellow", "+": "green", "-": "red"})

    gr.HighlightedText(
        value=[["UK", "+"], ["USA", "-"], ["China", "*"], ["Australia", "*"]],
        show_legend=True,
        show_label=False,
        label='',
        color_map={"*": "yellow", "+": "green", "-": "red"})

if __name__ == "__main__":
    demo.launch()

Screenshot

HighlightedText

Logs

.

System Info

Gradio Playground

Severity

I can work around it

@sthemeow sthemeow added the bug Something isn't working label Nov 14, 2024
@abidlabs
Copy link
Member

Can repro, thanks for reporting @sthemeow!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants