Spaces:
Running
Running
Update mars.py
Browse files
mars.py
CHANGED
|
@@ -122,6 +122,11 @@ def get_task_info(task_id):
|
|
| 122 |
|
| 123 |
def generate_song_from_text(lyrics_text, style, title, instrumental, model):
|
| 124 |
"""Generate a song from lyrics text"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 125 |
if not SUNO_KEY:
|
| 126 |
yield "❌ Error: SunoKey not configured in environment variables"
|
| 127 |
return
|
|
@@ -368,7 +373,7 @@ with gr.Blocks() as app:
|
|
| 368 |
)
|
| 369 |
|
| 370 |
# Action Buttons
|
| 371 |
-
|
| 372 |
clear_btn = gr.Button("🗑️ Clear All", variant="secondary")
|
| 373 |
|
| 374 |
# Instructions
|
|
|
|
| 122 |
|
| 123 |
def generate_song_from_text(lyrics_text, style, title, instrumental, model):
|
| 124 |
"""Generate a song from lyrics text"""
|
| 125 |
+
|
| 126 |
+
if SUNO_KEY:
|
| 127 |
+
yield "❌ Error: Space is paused"
|
| 128 |
+
return
|
| 129 |
+
|
| 130 |
if not SUNO_KEY:
|
| 131 |
yield "❌ Error: SunoKey not configured in environment variables"
|
| 132 |
return
|
|
|
|
| 373 |
)
|
| 374 |
|
| 375 |
# Action Buttons
|
| 376 |
+
generate_btn = gr.Button("🚀 Generate Song", variant="primary")
|
| 377 |
clear_btn = gr.Button("🗑️ Clear All", variant="secondary")
|
| 378 |
|
| 379 |
# Instructions
|