Update app.py
Browse files
app.py
CHANGED
|
@@ -173,16 +173,18 @@ iface = gr.Interface(
|
|
| 173 |
"Internal": "#ee8bacff"}
|
| 174 |
),
|
| 175 |
gr.HighlightedText(label="Extended Sequence Classification",
|
| 176 |
-
color_map={
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
|
|
|
|
|
|
| 186 |
),
|
| 187 |
gr.Label(label="Internal Detail Count"),
|
| 188 |
gr.Label(label="External Detail Count"),
|
|
|
|
| 173 |
"Internal": "#ee8bacff"}
|
| 174 |
),
|
| 175 |
gr.HighlightedText(label="Extended Sequence Classification",
|
| 176 |
+
color_map = {
|
| 177 |
+
"INTemothou": "#FF7F50", # Coral
|
| 178 |
+
"INTpercept": "#FF4500", # OrangeRed
|
| 179 |
+
"INTtime": "#FF6347", # Tomato
|
| 180 |
+
"INTplace": "#FFD700", # Gold
|
| 181 |
+
"INTevent": "#FFA500", # Orange
|
| 182 |
+
|
| 183 |
+
# EXT classes should be different from INT classes
|
| 184 |
+
"EXTsemantic": "#4682B4", # SteelBlue
|
| 185 |
+
"EXTrepetition": "#5F9EA0", # CadetBlue
|
| 186 |
+
"EXTother": "#00CED1", # DarkTurquoise
|
| 187 |
+
}
|
| 188 |
),
|
| 189 |
gr.Label(label="Internal Detail Count"),
|
| 190 |
gr.Label(label="External Detail Count"),
|