1
0
mirror of https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git synced 2026-06-08 20:10:44 +08:00

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

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2025-06-19 17:56:04 +09:00
committed by GitHub
parent 64f994be82
commit 3b4a546ced
7 changed files with 60 additions and 64 deletions

View File

@@ -28,9 +28,7 @@ def get_synthesizer(cpt: OrderedDict, device=torch.device("cpu")):
return net_g, cpt
def load_synthesizer(
pth_path: FileLike, device=torch.device("cpu") # type: ignore
):
def load_synthesizer(pth_path: FileLike, device=torch.device("cpu")): # type: ignore
return get_synthesizer(
torch.load(pth_path, map_location=torch.device("cpu"), weights_only=True),
device,