multimodalart HF staff commited on
Commit
57cd102
·
verified ·
1 Parent(s): 0704a28

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -17,6 +17,8 @@ def infer(prompt, negative, scale):
17
  global is_gpu_busy
18
  for filter in word_list:
19
  if re.search(rf"\b{filter}\b", prompt):
 
 
20
  raise gr.Error("Unsafe content found. Please try again with different prompts.")
21
 
22
  images = []
 
17
  global is_gpu_busy
18
  for filter in word_list:
19
  if re.search(rf"\b{filter}\b", prompt):
20
+ print(filter)
21
+ print(prompt)
22
  raise gr.Error("Unsafe content found. Please try again with different prompts.")
23
 
24
  images = []