Spaces:
Sleeping
Sleeping
Update utils.py
Browse files
utils.py
CHANGED
@@ -29,7 +29,7 @@ def get_res(model_name, input_sentence, single_print=True):
|
|
29 |
w.append(res[pre_len:])
|
30 |
pre = res
|
31 |
|
32 |
-
w = [ f'<span style="font-size:1.25em;background-color:{next(color_iterator)}">{x}</span>' for x in
|
33 |
else:
|
34 |
w = [ f'<span style="font-size:1.25em;background-color:{next(color_iterator)}">{tokenizer.decode(x)}</span>' for x in out ]
|
35 |
res = ''.join(w)
|
|
|
29 |
w.append(res[pre_len:])
|
30 |
pre = res
|
31 |
|
32 |
+
w = [ f'<span style="font-size:1.25em;background-color:{next(color_iterator)}">{x}</span>' for x in w ]
|
33 |
else:
|
34 |
w = [ f'<span style="font-size:1.25em;background-color:{next(color_iterator)}">{tokenizer.decode(x)}</span>' for x in out ]
|
35 |
res = ''.join(w)
|