From a05c72ec6f6be21bc9601fe5b6b2e79ce9782ec1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 31 Aug 2023 22:10:01 +0800 Subject: [PATCH] Format code (#1142) Co-authored-by: github-actions[bot] --- infer/modules/vc/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/infer/modules/vc/utils.py b/infer/modules/vc/utils.py index 9cc4830..17b7486 100644 --- a/infer/modules/vc/utils.py +++ b/infer/modules/vc/utils.py @@ -18,6 +18,7 @@ from fairseq import checkpoint_utils # "", # ) + def get_index_path_from_model(sid): sel_index_path = "" name = os.path.join("logs", sid.split(".")[0], "") @@ -29,6 +30,7 @@ def get_index_path_from_model(sid): break return sel_index_path + def load_hubert(config): models, _, _ = checkpoint_utils.load_model_ensemble_and_task( ["assets/hubert/hubert_base.pt"],