Update app.py
Browse files
app.py
CHANGED
@@ -97,7 +97,8 @@ if __name__ == "__main__":
|
|
97 |
label="Highlighted generation",
|
98 |
combine_adjacent=True,
|
99 |
show_legend=True,
|
100 |
-
|
|
|
101 |
|
102 |
button.click(get_tokens_and_labels, inputs=prompt, outputs=highlighted_text)
|
103 |
|
|
|
97 |
label="Highlighted generation",
|
98 |
combine_adjacent=True,
|
99 |
show_legend=True,
|
100 |
+
color_map=label_to_color,
|
101 |
+
)
|
102 |
|
103 |
button.click(get_tokens_and_labels, inputs=prompt, outputs=highlighted_text)
|
104 |
|