Skip to content

Commit 69cff7a

Browse files
committed
text tqdm.
1 parent 7c00b88 commit 69cff7a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

intermediate_source/speech_command_recognition_with_torchaudio_tutorial.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@
3333

3434
import matplotlib.pyplot as plt
3535
import IPython.display as ipd
36-
from tqdm.notebook import tqdm
36+
37+
try:
38+
from tqdm.notebook import tqdm
39+
except ImportError:
40+
from tqdm import tqdm
3741

3842

3943
######################################################################

0 commit comments

Comments
 (0)