Fix async generator syntax errors in tab files

Changed return statements to yield + return in async generator
functions. Python doesn't allow 'return' with a value in generators.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-26 23:16:39 +01:00
parent 1513f1fefa
commit b6eb73dea4
5 changed files with 10 additions and 5 deletions

View File

@@ -189,7 +189,7 @@ def create_musicgen_tab(
prompt, variant, duration, temperature, cfg_coef, top_k, top_p, seed, melody
):
if not prompt:
return (
yield (
gr.update(value="Please enter a prompt"),
gr.update(),
gr.update(),
@@ -197,6 +197,7 @@ def create_musicgen_tab(
gr.update(),
gr.update(),
)
return
# Update status
yield (