Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,10 +32,6 @@ def infer(prompt):
|
|
| 32 |
steps = 50
|
| 33 |
scale = 7.5
|
| 34 |
#When running locally you can also remove this filter
|
| 35 |
-
for filter in word_list:
|
| 36 |
-
if re.search(rf"\b{filter}\b", prompt):
|
| 37 |
-
raise gr.Error("Unsafe content found. Please try again with different prompts.")
|
| 38 |
-
|
| 39 |
#generator = torch.Generator(device=device).manual_seed(seed)
|
| 40 |
#print("Is GPU busy? ", is_gpu_busy)
|
| 41 |
images = []
|
|
|
|
| 32 |
steps = 50
|
| 33 |
scale = 7.5
|
| 34 |
#When running locally you can also remove this filter
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
#generator = torch.Generator(device=device).manual_seed(seed)
|
| 36 |
#print("Is GPU busy? ", is_gpu_busy)
|
| 37 |
images = []
|