Update app.py
Browse files
app.py
CHANGED
|
@@ -173,16 +173,16 @@ iface = gr.Interface(
|
|
| 173 |
inputs=gr.Textbox(lines=5, label="Input Text", placeholder="Write about how your breakfast went or anything else that happened or might happen to you ..."),
|
| 174 |
outputs=[
|
| 175 |
gr.HighlightedText(label="Extended Sequence Classification",
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
),
|
| 187 |
gr.Plot(label="Extended SeqClass Entity Distribution Pie Chart"),
|
| 188 |
gr.Image(label="Entity Word Cloud")
|
|
|
|
| 173 |
inputs=gr.Textbox(lines=5, label="Input Text", placeholder="Write about how your breakfast went or anything else that happened or might happen to you ..."),
|
| 174 |
outputs=[
|
| 175 |
gr.HighlightedText(label="Extended Sequence Classification",
|
| 176 |
+
ext_color_map = {
|
| 177 |
+
"INTemothou": "#FF7F50",
|
| 178 |
+
"INTpercept": "#FF4500",
|
| 179 |
+
"INTtime": "#FF6347",
|
| 180 |
+
"INTplace": "#FFD700",
|
| 181 |
+
"INTevent": "#FFA500",
|
| 182 |
+
"EXTsemantic": "#4682B4",
|
| 183 |
+
"EXTrepetition": "#5F9EA0",
|
| 184 |
+
"EXTother": "#00CED1",
|
| 185 |
+
}
|
| 186 |
),
|
| 187 |
gr.Plot(label="Extended SeqClass Entity Distribution Pie Chart"),
|
| 188 |
gr.Image(label="Entity Word Cloud")
|