Skip to content

Commit

Permalink
chore(format): run black on main
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 4, 2024
1 parent dbf1e9c commit 02d7399
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tabs/inference/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def refresh_embedders_folders():

def get_speakers_id(model):
if model:
model_data = torch.load(os.path.join(now_dir,model), map_location="cpu")
model_data = torch.load(os.path.join(now_dir, model), map_location="cpu")
speakers_id = model_data.get("speakers_id")
if speakers_id:
return list(range(speakers_id))
Expand All @@ -331,6 +331,7 @@ def get_speakers_id(model):
else:
return [0]


# Inference tab
def inference_tab():
default_weight = names[0] if names else None
Expand Down

0 comments on commit 02d7399

Please sign in to comment.