samibasem commited on
Commit
65ca753
·
verified ·
1 Parent(s): 6e38edd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -16,12 +16,7 @@ word_list = word_list_dataset["train"]['text']
16
  is_gpu_busy = False
17
  def infer(prompt, negative, scale):
18
  global is_gpu_busy
19
- for filter in word_list:
20
- if re.search(rf"\b{filter}\b", prompt):
21
- print(filter)
22
- print(prompt)
23
- raise gr.Error("Unsafe content found. Please try again with different prompts.")
24
-
25
  images = []
26
  url = os.getenv('JAX_BACKEND_URL')
27
  print(url)
 
16
  is_gpu_busy = False
17
  def infer(prompt, negative, scale):
18
  global is_gpu_busy
19
+
 
 
 
 
 
20
  images = []
21
  url = os.getenv('JAX_BACKEND_URL')
22
  print(url)