Spaces:
Runtime error
Runtime error
Jordan Legg
commited on
Commit
·
a35c60b
1
Parent(s):
ed8e391
final version, no different colours but it works
Browse files
app.py
CHANGED
|
@@ -35,9 +35,9 @@ def count_tokens(text):
|
|
| 35 |
decoded = "∅"
|
| 36 |
clip_decoded.append(decoded)
|
| 37 |
|
| 38 |
-
# Create highlighted text tuples
|
| 39 |
-
t5_highlights = [(token,
|
| 40 |
-
clip_highlights = [(token,
|
| 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
|