m-ric HF staff commited on
Commit
3244268
1 Parent(s): 2777576

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -59,7 +59,7 @@ def chunk(text, length, splitter_selection, separators_str, length_unit_selectio
59
 
60
  unoverlapped_text_splits = unoverlap_list(text_splits)
61
 
62
- output = [((split[0], 'Overlap') if split[1] else (split[0], f"Chunk {str(i)})) for i, split in enumerate(unoverlapped_text_splits)]
63
  print(output)
64
  return output
65
 
@@ -147,7 +147,7 @@ with gr.Blocks(theme=gr.themes.Soft(text_size='lg', font=["monospace"], primary_
147
  label="Output",
148
  show_legend=True,
149
  show_label=False,
150
- color_map={'Overlap': 'red'}
151
  )
152
  text.change(
153
  fn=chunk,
 
59
 
60
  unoverlapped_text_splits = unoverlap_list(text_splits)
61
 
62
+ output = [((split[0], 'Overlap') if split[1] else (split[0], f"Chunk {str(i)}")) for i, split in enumerate(unoverlapped_text_splits)]
63
  print(output)
64
  return output
65
 
 
147
  label="Output",
148
  show_legend=True,
149
  show_label=False,
150
+ color_map={'Overlap': '#DADADA'}
151
  )
152
  text.change(
153
  fn=chunk,