diff --git a/tools/diffusion/gradio_ui.py b/tools/diffusion/gradio_ui.py index 283383a4..895f74c6 100644 --- a/tools/diffusion/gradio_ui.py +++ b/tools/diffusion/gradio_ui.py @@ -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( diff --git a/tools/mfa/postprocess_mfa.py b/tools/mfa/postprocess_mfa.py index 2973b81b..87a7c8bc 100644 --- a/tools/mfa/postprocess_mfa.py +++ b/tools/mfa/postprocess_mfa.py @@ -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