Format code (#874)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
github-actions[bot] 2023-07-26 11:56:00 +08:00 committed by GitHub
parent 85d0d709e0
commit 232213a522
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -5,7 +5,13 @@ from multiprocessing import cpu_count
def use_fp32_config():
for config_file in ["32k.json", "40k.json", "48k.json", "48k_v2.json", "32k_v2.json"]:
for config_file in [
"32k.json",
"40k.json",
"48k.json",
"48k_v2.json",
"32k_v2.json",
]:
with open(f"configs/{config_file}", "r") as f:
strr = f.read().replace("true", "false")
with open(f"configs/{config_file}", "w") as f:

View File

@ -1,6 +1,7 @@
import os
import shutil
import sys
now_dir = os.getcwd()
sys.path.append(now_dir)
import traceback, pdb