Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 6, 2024
1 parent d0c3691 commit 035250c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 5 additions & 3 deletions tools/diffusion/gradio_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,11 @@ def launch_gradio(
speaker = gr.Dropdown(
label="Speaker Name (Used for Multi-Speaker Models)",
choices=list(speaker_mapping.keys()),
value=speaker
if speaker in speaker_mapping
else list(speaker_mapping.keys())[0],
value=(
speaker
if speaker in speaker_mapping
else list(speaker_mapping.keys())[0]
),
)
else:
speaker = gr.Number(
Expand Down
1 change: 0 additions & 1 deletion tools/mfa/postprocess_mfa.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
It aims to reduce errors for long utterances and detcect aspiration which is not detected by MFA.
"""


import librosa
import numpy as np
import parselmouth as pm
Expand Down

0 comments on commit 035250c

Please sign in to comment.