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:
@@ -161,7 +161,7 @@ def create_style_tab(
|
||||
prompt, variant, style_audio, duration, temperature, cfg_coef, top_k, top_p, seed
|
||||
):
|
||||
if not style_audio:
|
||||
return (
|
||||
yield (
|
||||
gr.update(value="Please upload a style reference audio"),
|
||||
gr.update(),
|
||||
gr.update(),
|
||||
@@ -169,6 +169,7 @@ def create_style_tab(
|
||||
gr.update(),
|
||||
gr.update(),
|
||||
)
|
||||
return
|
||||
|
||||
yield (
|
||||
gr.update(value="🔄 Generating..."),
|
||||
|
||||
Reference in New Issue
Block a user