Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -32,10 +32,7 @@ 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
+
 
 
 
36
  #generator = torch.Generator(device=device).manual_seed(seed)
37
  #print("Is GPU busy? ", is_gpu_busy)
38
  images = []