mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git
synced 2026-03-04 21:03:49 +00:00
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:
committed by
GitHub
parent
5c609190a2
commit
634ba76cfa
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user