File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 2222from lit_nlp import server_config
2323from lit_nlp .api import layout
2424from lit_nlp .lib import wsgi_serving
25+ from tqdm import notebook
2526
2627JsonDict = Mapping [str , Any ]
2728
28- is_colab = False
2929try :
3030 import google .colab # pylint: disable=g-import-not-at-top,unused-import
3131 from google .colab import output # pylint: disable=g-import-not-at-top,unused-import # pytype: disable=import-error
3232 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
3733except (ImportError , ModuleNotFoundError ):
38- from tqdm import notebook # pylint: disable=g-import-not-at-top
39- progress_indicator = notebook .tqdm
34+ is_colab = False
4035
36+ progress_indicator = notebook .tqdm
4137modules = layout .LitModuleName
4238
4339LIT_NOTEBOOK_LAYOUT = layout .LitCanonicalLayout (
You can’t perform that action at this time.
0 commit comments