joaogante HF staff commited on
Commit
db3bd52
1 Parent(s): 4ad4fa8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -97,7 +97,8 @@ if __name__ == "__main__":
97
  label="Highlighted generation",
98
  combine_adjacent=True,
99
  show_legend=True,
100
- ).style(color_map=label_to_color)
 
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