Spaces:
Sleeping
Sleeping
AlzbetaStrompova
commited on
Commit
•
d4d79b0
1
Parent(s):
cbb6c91
fix light color
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ with gr.Blocks(css="./style.css", theme=gr.themes.Default(primary_hue="blue", se
|
|
20 |
gr.Interface(ner,
|
21 |
gr.Textbox(lines=10, placeholder="Enter sentence here..."),
|
22 |
# gr.HighlightedText(show_legend=True, color_map={"PER": "red", "ORG": "green", "LOC": "blue"}),
|
23 |
-
gr.HighlightedText(show_legend=True, color_map={"PER": "#
|
24 |
examples=examples,
|
25 |
title="NerROB-czech",
|
26 |
description="This is an implementation of a Named Entity Recognition model for the Czech language using gazetteers.",
|
|
|
20 |
gr.Interface(ner,
|
21 |
gr.Textbox(lines=10, placeholder="Enter sentence here..."),
|
22 |
# gr.HighlightedText(show_legend=True, color_map={"PER": "red", "ORG": "green", "LOC": "blue"}),
|
23 |
+
gr.HighlightedText(show_legend=True, color_map={"PER": "#c40e0e", "ORG": "#008a20", "LOC": "#0432d9"}, elem_id="highlighted_text"),
|
24 |
examples=examples,
|
25 |
title="NerROB-czech",
|
26 |
description="This is an implementation of a Named Entity Recognition model for the Czech language using gazetteers.",
|
style.css
CHANGED
@@ -2,8 +2,12 @@ footer {
|
|
2 |
display: none !important;
|
3 |
}
|
4 |
|
|
|
|
|
|
|
|
|
5 |
.container .svelte-ju12zg {
|
6 |
-
color: white;
|
7 |
}
|
8 |
|
9 |
.text.svelte-ju12zg {
|
|
|
2 |
display: none !important;
|
3 |
}
|
4 |
|
5 |
+
:root {
|
6 |
+
color-scheme: light dark;
|
7 |
+
}
|
8 |
+
|
9 |
.container .svelte-ju12zg {
|
10 |
+
color: light-dark(black, white);
|
11 |
}
|
12 |
|
13 |
.text.svelte-ju12zg {
|