diff --git a/tools/damo_asr/cmd-asr.py b/tools/damo_asr/cmd-asr.py index 70dd4d8..d5c07bb 100644 --- a/tools/damo_asr/cmd-asr.py +++ b/tools/damo_asr/cmd-asr.py @@ -4,7 +4,7 @@ import sys,os,traceback from funasr import AutoModel -dir=sys.argv[1] +dir=sys.argv[1].strip("/") # opt_name=dir.split("\\")[-1].split("/")[-1] opt_name=os.path.basename(dir)