chore(format): run black on dev (#1398)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2023-10-08 18:54:15 +08:00
committed by GitHub
parent 5c609190a2
commit 634ba76cfa
4 changed files with 51 additions and 51 deletions

View File

@@ -53,8 +53,10 @@ def load_audio(file, sr):
file = (
file.strip(" ").strip('"').strip("\n").strip('"').strip(" ")
) # 防止小白拷路径头尾带了空格和"和回车
if(os.path.exists(file)==False):
raise RuntimeError("You input a wrong audio path that does not exists, please fix it!")
if os.path.exists(file) == False:
raise RuntimeError(
"You input a wrong audio path that does not exists, please fix it!"
)
try:
with open(file, "rb") as f:
with BytesIO() as out: