Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
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 = []
|