Spaces:
Running on CPU Upgrade

Files changed (1) hide show
  1. app.py +0 -4
app.py CHANGED
@@ -85,10 +85,6 @@ word_list = word_list_dataset["train"]['text']
85
  #gradio.helpers.CACHED_FOLDER="/data/cache"
86
 
87
  def infer(prompt, negative="low_quality", scale=7, style_name=None, profile: gr.OAuthProfile | None = None):
88
- for filter in word_list:
89
- if re.search(rf"\b{filter}\b", prompt):
90
- raise gr.Error("Please try again with a different prompt")
91
-
92
  seed = random.randint(0,4294967295)
93
  prompt, negative = apply_style(style_name, prompt, negative)
94
  images = []
 
85
  #gradio.helpers.CACHED_FOLDER="/data/cache"
86
 
87
  def infer(prompt, negative="low_quality", scale=7, style_name=None, profile: gr.OAuthProfile | None = None):
 
 
 
 
88
  seed = random.randint(0,4294967295)
89
  prompt, negative = apply_style(style_name, prompt, negative)
90
  images = []