Skip to content

Commit

Permalink
Visualizer.
Browse files Browse the repository at this point in the history
  • Loading branch information
Narsil committed Mar 11, 2024
1 parent 04905c5 commit 0abe84f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bindings/python/py_src/tokenizers/tools/visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def __init__(
if default_to_notebook:
try:
from IPython.core.display import HTML, display
except ImportError as e:
except ImportError:
raise Exception(
"""We couldn't import IPython utils for html display.
Are you running in a notebook?
Expand Down Expand Up @@ -136,7 +136,7 @@ def __call__(
if final_default_to_notebook:
try:
from IPython.core.display import HTML, display
except ImportError as e:
except ImportError:
raise Exception(
"""We couldn't import IPython utils for html display.
Are you running in a notebook?"""
Expand Down Expand Up @@ -170,7 +170,7 @@ def calculate_label_colors(annotations: AnnotationList) -> Dict[str, str]:
if h_step < 20:
h_step = 20
s = 32
l = 64
l = 64 # noqa: E741
h = 10
colors = {}

Expand Down

0 comments on commit 0abe84f

Please sign in to comment.