Commit
·
3c2a5dd
1
Parent(s):
29b3430
Update app.py
Browse files
app.py
CHANGED
@@ -37,11 +37,6 @@ def _piece_attn_html(pieces, attns, sep=" ", **kwargs):
|
|
37 |
return "".join(html_code)
|
38 |
|
39 |
|
40 |
-
def _show_piece_attn(*args, **kwargs):
|
41 |
-
from IPython.display import display, HTML
|
42 |
-
|
43 |
-
display(HTML(_piece_attn_html(*args, **kwargs)))
|
44 |
-
|
45 |
|
46 |
@lru_cache(maxsize=1024 * 2)
|
47 |
def _intrinsic_attention(learn, text, class_id=None):
|
|
|
37 |
return "".join(html_code)
|
38 |
|
39 |
|
|
|
|
|
|
|
|
|
|
|
40 |
|
41 |
@lru_cache(maxsize=1024 * 2)
|
42 |
def _intrinsic_attention(learn, text, class_id=None):
|