Jordan Legg commited on
Commit
a35c60b
1 Parent(s): ed8e391

final version, no different colours but it works

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -35,9 +35,9 @@ def count_tokens(text):
35
  decoded = "∅"
36
  clip_decoded.append(decoded)
37
 
38
- # Create highlighted text tuples (text, label)
39
- t5_highlights = [(token, f"{i + 1}") for i, token in enumerate(t5_decoded)]
40
- clip_highlights = [(token, f"{i + 1}") for i, token in enumerate(clip_decoded)]
41
 
42
  return (
43
  # T5 outputs
 
35
  decoded = "∅"
36
  clip_decoded.append(decoded)
37
 
38
+ # Create highlighted text tuples with empty labels
39
+ t5_highlights = [(token, "") for token in t5_decoded]
40
+ clip_highlights = [(token, "") for token in clip_decoded]
41
 
42
  return (
43
  # T5 outputs