From c4b93e8fd870954ec2649abc3fc6172d78d92166 Mon Sep 17 00:00:00 2001 From: ftshijt <728307998@qq.com> Date: Wed, 27 Apr 2022 01:49:00 -0400 Subject: [PATCH] apply black --- test/espnet2/bin/test_st_inference.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/espnet2/bin/test_st_inference.py b/test/espnet2/bin/test_st_inference.py index 7abc3c6ef7d..3910479456b 100644 --- a/test/espnet2/bin/test_st_inference.py +++ b/test/espnet2/bin/test_st_inference.py @@ -65,9 +65,7 @@ def st_config_file(tmp_path: Path, token_list, src_token_list): @pytest.mark.execution_timeout(5) def test_Speech2Text(st_config_file): - speech2text = Speech2Text( - st_train_config=st_config_file, beam_size=1 - ) + speech2text = Speech2Text(st_train_config=st_config_file, beam_size=1) speech = np.random.randn(1000) results = speech2text(speech) for text, token, token_int, hyp in results: @@ -75,5 +73,3 @@ def test_Speech2Text(st_config_file): assert isinstance(token[0], str) assert isinstance(token_int[0], int) assert isinstance(hyp, Hypothesis) - -