Update app.py
Browse files
app.py
CHANGED
@@ -165,9 +165,21 @@ iface = gr.Interface(
|
|
165 |
inputs=gr.Textbox(lines=5, label="Input Text",placeholder="Write about how your breakfast went or anything else that happend or might happen to you ..."),
|
166 |
outputs=[
|
167 |
gr.HighlightedText(label="Binary Sequence Classification",
|
168 |
-
color_map={
|
|
|
|
|
169 |
gr.HighlightedText(label="Extended Sequence Classification",
|
170 |
-
color_map={
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
171 |
gr.Label(label="Internal Detail Count"),
|
172 |
gr.Label(label="External Detail Count"),
|
173 |
gr.Label(label="Approximated Internal Detail Ratio")
|
|
|
165 |
inputs=gr.Textbox(lines=5, label="Input Text",placeholder="Write about how your breakfast went or anything else that happend or might happen to you ..."),
|
166 |
outputs=[
|
167 |
gr.HighlightedText(label="Binary Sequence Classification",
|
168 |
+
color_map={
|
169 |
+
"EXTERNAL": "#6ad5bcff",
|
170 |
+
"INTERNAL": "#ee8bacff"}),
|
171 |
gr.HighlightedText(label="Extended Sequence Classification",
|
172 |
+
color_map={
|
173 |
+
"INTemothou": "#c27ba0",
|
174 |
+
"INTpercept": "#cc4125",
|
175 |
+
"INTtime": "#e06f66",
|
176 |
+
"INTplace": "#e69138",
|
177 |
+
"INTevent": "#ee8bacff",
|
178 |
+
|
179 |
+
"EXTsemantic": "#6ad5bc",
|
180 |
+
"EXTrepetition": "#11aeb8",
|
181 |
+
"EXTother": "#24aaad",
|
182 |
+
}),
|
183 |
gr.Label(label="Internal Detail Count"),
|
184 |
gr.Label(label="External Detail Count"),
|
185 |
gr.Label(label="Approximated Internal Detail Ratio")
|