ydshieh HF staff commited on
Commit
1ac802a
1 Parent(s): aacd978

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -272,7 +272,7 @@ def main():
272
  if start > prev_start:
273
  colored_text.append((processed_text[prev_start:start], None))
274
  colored_text.append((processed_text[start:end], f"{color_id}"))
275
- prev_start = start
276
 
277
  if end < len(processed_text):
278
  colored_text.append((processed_text[end:len(processed_text)], None))
 
272
  if start > prev_start:
273
  colored_text.append((processed_text[prev_start:start], None))
274
  colored_text.append((processed_text[start:end], f"{color_id}"))
275
+ prev_start = end
276
 
277
  if end < len(processed_text):
278
  colored_text.append((processed_text[end:len(processed_text)], None))