Skip to content

SOTA Open Source TTS

Fix lint

Lengyueb55613946a58
diff --git a/fish_speech/webui/manage.py b/fish_speech/webui/manage.py
index e86a3b8..f267f86 100644
--- a/fish_speech/webui/manage.py
+++ b/fish_speech/webui/manage.py
@@ -107,9 +107,11 @@ def change_label(if_label):
remote_url = "https://text-labeler.pages.dev/"
p_label = subprocess.Popen(
[
- "asr-label-linux-x64"
- if sys.platform == "linux"
- else "asr-label-win-x64.exe"
+ (
+ "asr-label-linux-x64"
+ if sys.platform == "linux"
+ else "asr-label-win-x64.exe"
+ )
]
)
yield build_html_href(
@@ -1040,12 +1042,14 @@ with gr.Blocks(
"Compile the model can significantly reduce the inference time, but will increase cold start time"
),
choices=["Yes", "No"],
- value="Yes"
- if (
- sys.platform == "linux"
- or is_module_installed("triton")
- )
- else "No",
+ value=(
+ "Yes"
+ if (
+ sys.platform == "linux"
+ or is_module_installed("triton")
+ )
+ else "No"
+ ),
interactive=is_module_installed("triton"),
)
infer_llama_config = gr.Dropdown(