From e1284ba6c250882b25620b349c4b29069021c238 Mon Sep 17 00:00:00 2001 From: drryanhuang Date: Mon, 13 Jan 2025 04:12:18 +0000 Subject: [PATCH] rm notebook && add audio path --- audio/audiotools/post.py | 20 -------------------- audio/tests/audiotools/test_audiotools.sh | 1 + 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/audio/audiotools/post.py b/audio/audiotools/post.py index 9c3a40aa3..ce7befbda 100644 --- a/audio/audiotools/post.py +++ b/audio/audiotools/post.py @@ -94,23 +94,3 @@ def audio_table( output = "\n" + "\n".join(output) return output - - -def in_notebook(): - """Determines if code is running in a notebook. - - Returns - ------- - bool - Whether or not this is running in a notebook. - """ - try: - from IPython import get_ipython - - if "IPKernelApp" not in get_ipython().config: - return False - except ImportError: - return False - except AttributeError: - return False - return True diff --git a/audio/tests/audiotools/test_audiotools.sh b/audio/tests/audiotools/test_audiotools.sh index 1be7dafd9..e1856a8ed 100644 --- a/audio/tests/audiotools/test_audiotools.sh +++ b/audio/tests/audiotools/test_audiotools.sh @@ -1,4 +1,5 @@ python -m pip install -r ../../audiotools/requirements.txt +export PYTHONPATH=$PYTHONPATH:$(realpath ../../..) wget https://paddlespeech.bj.bcebos.com/PaddleAudio/audio_tools/audio.tar.gz wget https://paddlespeech.bj.bcebos.com/PaddleAudio/audio_tools/regression.tar.gz tar -zxvf audio.tar.gz