Skip to content

Commit 3607e1f

Browse files
committed
be extra safe with the filters
1 parent d407af2 commit 3607e1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/jobs/generate_basil_image_job.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def perform(basil_commission_id)
1919
return if commission.image.attached?
2020

2121
# Filter out specific words from the prompt that we don't want to include in image generation
22-
sanitized_commmission_prompt = commission.prompt.gsub(/(nudity|nsfw|nude|xxx|porn|pornographic|naked|sex|blowjob|undressed|stripped|stripping|stripper)/i, '')
22+
sanitized_commmission_prompt = commission.prompt.gsub(/(nudity|nsfw|nude|xxx|porn|pornographic|naked|sex|blowjob|undressed|stripped|stripping|stripper|birthmark)/i, '')
2323

2424
# Details we can use:
2525
# commission.prompt - the prompt for the image
@@ -40,7 +40,7 @@ def perform(basil_commission_id)
4040
steps: 20,
4141
# Add other parameters like negative_prompt, width, height, sampler_index, etc. as needed
4242
# Example:
43-
negative_prompt: "(naked, nudity, nsfw, nude), (sex, hardcore, porn, pornographic), xxx, low quality, blurry, worst quality, diptych, triptych, multiple images, multiple subjects, signed, signature, watermark, watermarked, words, text",
43+
negative_prompt: "(naked, nudity, nsfw, nude), (tits, breasts, boobs), (sex, hardcore, porn, pornographic), xxx, low quality, blurry, worst quality, diptych, triptych, multiple images, multiple subjects, signed, signature, watermark, watermarked, words, text",
4444
width: 512,
4545
height: 512,
4646
override_settings: {

0 commit comments

Comments
 (0)