alfredplpl commited on
Commit
0c3261b
1 Parent(s): c8c57a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -33,7 +33,9 @@ compel = Compel(tokenizer=[pipe_normal.tokenizer, pipe_normal.tokenizer_2] ,
33
  @spaces.GPU
34
  def run_normal(prompt, negative_prompt="", guidance_scale=7.5, progress=gr.Progress(track_tqdm=True)):
35
  # ユーザーの著作権侵害を防ぐフィルター
36
- prompt=prompt.replace("pokemon","")
 
 
37
  if(prompt==""):
38
  conditioning, pooled = compel("1girl, (upper body)++, brown bob short hair, brown eyes, looking at viewer, cherry blossom")
39
  else:
 
33
  @spaces.GPU
34
  def run_normal(prompt, negative_prompt="", guidance_scale=7.5, progress=gr.Progress(track_tqdm=True)):
35
  # ユーザーの著作権侵害を防ぐフィルター
36
+ words=["pokemon", "picachu", "mario", "genshin"]
37
+ for word in words:
38
+ prompt=prompt.replace(word,"")
39
  if(prompt==""):
40
  conditioning, pooled = compel("1girl, (upper body)++, brown bob short hair, brown eyes, looking at viewer, cherry blossom")
41
  else: