File size: 286 Bytes
e6a94bd f14d43d ecb5b28 e6a94bd 7c16e25 e6a94bd f14d43d e6a94bd | 1 2 3 4 5 6 7 8 9 10 11 | import gradio as gr
with gr.Blocks() as demo:
gr.HighlightedText(
value=[("This is highlighted", "highlight"), ("This is not", None), ("This is also highlighted", "highlight")],
color_map={"highlight": "yellow"},
combine_adjacent=True,
)
demo.launch()
|