Lengyue 2 anni fa
parent
commit
b55613946a
1 ha cambiato i file con 13 aggiunte e 9 eliminazioni
  1. 13 9
      fish_speech/webui/manage.py

+ 13 - 9
fish_speech/webui/manage.py

@@ -107,9 +107,11 @@ def change_label(if_label):
         remote_url = "https://text-labeler.pages.dev/"
         remote_url = "https://text-labeler.pages.dev/"
         p_label = subprocess.Popen(
         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(
         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"
                                         "Compile the model can significantly reduce the inference time, but will increase cold start time"
                                     ),
                                     ),
                                     choices=["Yes", "No"],
                                     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"),
                                     interactive=is_module_installed("triton"),
                                 )
                                 )
                                 infer_llama_config = gr.Dropdown(
                                 infer_llama_config = gr.Dropdown(