Spaces:
Runtime error
Runtime error
Robert Jones
commited on
Commit
Β·
aae3141
1
Parent(s):
25e7ad9
Fix syntax error - add missing except block
Browse files
app.py
CHANGED
@@ -82,6 +82,9 @@ def generate_song(lyrics, audio_file):
|
|
82 |
yield output_file, "β
Your AI song is ready! π΅"
|
83 |
else:
|
84 |
yield None, "β Generation completed but output file not found. Check model setup."
|
|
|
|
|
|
|
85 |
|
86 |
# Create interface
|
87 |
with gr.Blocks(title="SongBloom AI Music Generator") as demo:
|
|
|
82 |
yield output_file, "β
Your AI song is ready! π΅"
|
83 |
else:
|
84 |
yield None, "β Generation completed but output file not found. Check model setup."
|
85 |
+
except Exception as e:
|
86 |
+
yield None, f"β Error: {str(e)}"
|
87 |
+
|
88 |
|
89 |
# Create interface
|
90 |
with gr.Blocks(title="SongBloom AI Music Generator") as demo:
|