Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
0e28cb3
1
Parent(s):
597cecf
fix
Browse files
app.py
CHANGED
@@ -259,18 +259,6 @@ with gr.Blocks(title="DMOSpeech 2 - Zero-Shot TTS") as demo:
|
|
259 |
outputs=[output_audio, status, metrics, info],
|
260 |
)
|
261 |
|
262 |
-
|
263 |
-
def update_custom_visibility(mode):
|
264 |
-
is_custom = mode == "Custom"
|
265 |
-
return gr.update(visible=is_custom)
|
266 |
|
267 |
-
|
268 |
-
|
269 |
-
# Launch the app
|
270 |
-
if __name__ == "__main__":
|
271 |
-
if not model_loaded:
|
272 |
-
print(f"Warning: Model failed to load - {status_message}")
|
273 |
-
if not asr_pipe:
|
274 |
-
print("Warning: ASR pipeline not available - auto-transcription disabled")
|
275 |
-
|
276 |
-
demo.launch()
|
|
|
259 |
outputs=[output_audio, status, metrics, info],
|
260 |
)
|
261 |
|
262 |
+
mode.change(lambda x: gr.update(visible=x == "Custom"), inputs=[mode], outputs=[custom_settings])
|
|
|
|
|
|
|
263 |
|
264 |
+
demo.queue(concurrency_limit=10)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|