AlGe commited on
Commit
913bc76
·
verified ·
1 Parent(s): b48c1e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -86,8 +86,8 @@ def generate_charts(ner_output_bin: dict) -> Tuple[go.Figure, np.ndarray]:
86
  bin_sizes = list(entity_counts_bin.values())
87
 
88
  bin_color_map = {
89
- "External": "#00008B", // Deep blue
90
- "Internal": "#8B0000" // Deep red
91
  }
92
 
93
  bin_colors = [bin_color_map.get(label, "#FFFFFF") for label in bin_labels]
@@ -182,9 +182,10 @@ iface = gr.Interface(
182
  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 ..."),
183
  outputs=[
184
  gr.HighlightedText(label="Binary Sequence Classification",
185
- color_map={
186
- "External": "#6ad5bcff",
187
- "Internal": "#ee8bacff"}
 
188
  ),
189
  gr.Plot(label="Binary SeqClass Entity Count Bar Chart"),
190
  gr.Image(label="Entity Word Cloud")
 
86
  bin_sizes = list(entity_counts_bin.values())
87
 
88
  bin_color_map = {
89
+ "External": "#00008B",
90
+ "Internal": "#8B0000"
91
  }
92
 
93
  bin_colors = [bin_color_map.get(label, "#FFFFFF") for label in bin_labels]
 
182
  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 ..."),
183
  outputs=[
184
  gr.HighlightedText(label="Binary Sequence Classification",
185
+ bin_color_map = {
186
+ "External": "#00008B",
187
+ "Internal": "#8B0000"
188
+ }
189
  ),
190
  gr.Plot(label="Binary SeqClass Entity Count Bar Chart"),
191
  gr.Image(label="Entity Word Cloud")