Update cmd-asr.py

This commit is contained in:
RVC-Boss 2024-02-01 23:47:13 +08:00 committed by GitHub
parent af5e2a4ff3
commit 45f73519cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)