mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
be extra safe with the filters
This commit is contained in:
parent
d407af2878
commit
3607e1f370
@ -19,7 +19,7 @@ class GenerateBasilImageJob < ApplicationJob
|
||||
return if commission.image.attached?
|
||||
|
||||
# Filter out specific words from the prompt that we don't want to include in image generation
|
||||
sanitized_commmission_prompt = commission.prompt.gsub(/(nudity|nsfw|nude|xxx|porn|pornographic|naked|sex|blowjob|undressed|stripped|stripping|stripper)/i, '')
|
||||
sanitized_commmission_prompt = commission.prompt.gsub(/(nudity|nsfw|nude|xxx|porn|pornographic|naked|sex|blowjob|undressed|stripped|stripping|stripper|birthmark)/i, '')
|
||||
|
||||
# Details we can use:
|
||||
# commission.prompt - the prompt for the image
|
||||
@ -40,7 +40,7 @@ class GenerateBasilImageJob < ApplicationJob
|
||||
steps: 20,
|
||||
# Add other parameters like negative_prompt, width, height, sampler_index, etc. as needed
|
||||
# Example:
|
||||
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",
|
||||
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",
|
||||
width: 512,
|
||||
height: 512,
|
||||
override_settings: {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user