Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -153,7 +153,7 @@ def _upload_to_community(wav_path, meta_dict, song_id):
|
|
| 153 |
@spaces.GPU(duration=120)
|
| 154 |
def generate(style, lyrics, cot, seed, cfg_scale):
|
| 155 |
if not is_content_safe(style, lyrics):
|
| 156 |
-
raise gr.Error("
|
| 157 |
|
| 158 |
pipeline = get_pipeline()
|
| 159 |
if seed is None or seed < 1:
|
|
|
|
| 153 |
@spaces.GPU(duration=120)
|
| 154 |
def generate(style, lyrics, cot, seed, cfg_scale):
|
| 155 |
if not is_content_safe(style, lyrics):
|
| 156 |
+
raise gr.Error("Error: Nice try! But our firewall is smarter than your prompt. Try writing something actual music-related.")
|
| 157 |
|
| 158 |
pipeline = get_pipeline()
|
| 159 |
if seed is None or seed < 1:
|