File tree 1 file changed +3
-7
lines changed
1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 22
22
from lit_nlp import server_config
23
23
from lit_nlp .api import layout
24
24
from lit_nlp .lib import wsgi_serving
25
+ from tqdm import notebook
25
26
26
27
JsonDict = Mapping [str , Any ]
27
28
28
- is_colab = False
29
29
try :
30
30
import google .colab # pylint: disable=g-import-not-at-top,unused-import
31
31
from google .colab import output # pylint: disable=g-import-not-at-top,unused-import # pytype: disable=import-error
32
32
is_colab = True
33
- # Can disable import error as this package is always
34
- # included in colab kernels.
35
- from colabtools import interactive_widgets # pylint: disable=g-import-not-at-top # pytype: disable=import-error
36
- progress_indicator = interactive_widgets .ProgressIter
37
33
except (ImportError , ModuleNotFoundError ):
38
- from tqdm import notebook # pylint: disable=g-import-not-at-top
39
- progress_indicator = notebook .tqdm
34
+ is_colab = False
40
35
36
+ progress_indicator = notebook .tqdm
41
37
modules = layout .LitModuleName
42
38
43
39
LIT_NOTEBOOK_LAYOUT = layout .LitCanonicalLayout (
You can’t perform that action at this time.
0 commit comments