Format code (#1142)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
45289e2d3d
commit
a05c72ec6f
@ -18,6 +18,7 @@ from fairseq import checkpoint_utils
|
|||||||
# "",
|
# "",
|
||||||
# )
|
# )
|
||||||
|
|
||||||
|
|
||||||
def get_index_path_from_model(sid):
|
def get_index_path_from_model(sid):
|
||||||
sel_index_path = ""
|
sel_index_path = ""
|
||||||
name = os.path.join("logs", sid.split(".")[0], "")
|
name = os.path.join("logs", sid.split(".")[0], "")
|
||||||
@ -29,6 +30,7 @@ def get_index_path_from_model(sid):
|
|||||||
break
|
break
|
||||||
return sel_index_path
|
return sel_index_path
|
||||||
|
|
||||||
|
|
||||||
def load_hubert(config):
|
def load_hubert(config):
|
||||||
models, _, _ = checkpoint_utils.load_model_ensemble_and_task(
|
models, _, _ = checkpoint_utils.load_model_ensemble_and_task(
|
||||||
["assets/hubert/hubert_base.pt"],
|
["assets/hubert/hubert_base.pt"],
|
||||||
|
Loading…
Reference in New Issue
Block a user