From 90260bed95ff1715175056d7cd58f062ba683f81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=98=89=E6=B8=8A?= Date: Fri, 28 Apr 2023 15:49:30 +0800 Subject: [PATCH] update --- funasr/bin/asr_inference.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/funasr/bin/asr_inference.py b/funasr/bin/asr_inference.py index f3b4d560a..3a1026711 100644 --- a/funasr/bin/asr_inference.py +++ b/funasr/bin/asr_inference.py @@ -352,7 +352,10 @@ def inference_modelscope( raise NotImplementedError("Word LM is not implemented") if ngpu > 1: raise NotImplementedError("only single GPU decoding is supported") - + + for handler in logging.root.handlers[:]: + logging.root.removeHandler(handler) + logging.basicConfig( level=log_level, format="%(asctime)s (%(module)s:%(lineno)d) %(levelname)s: %(message)s",