Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
gradio
/
highlightedtext_component_main
like
0
Running
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
f14d43d
highlightedtext_component_main
/
run.py
aliabd
HF staff
Upload with huggingface_hub
f14d43d
over 2 years ago
raw
Copy download link
history
blame
Safe
159 Bytes
import
gradio
as
gr
with
gr.Blocks()
as
demo:
gr.HighlightedText(value=[(
"Text"
,
"Label 1"
),(
"to be"
,
"Label 2"
),(
"highlighted"
,
"Label 3"
)])
demo.launch()