directedbykobyperez commited on
Commit
bb88ba7
·
verified ·
1 Parent(s): e19a839

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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("Your input was flagged by our safety filters.")
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: