Robert Jones commited on
Commit
aae3141
Β·
1 Parent(s): 25e7ad9

Fix syntax error - add missing except block

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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: