mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
add checkbox black_out_nsfw
makes both enabling via config and checkbox possible, where config overrides the checkbox value
This commit is contained in:
@@ -60,7 +60,7 @@ def worker():
|
||||
if not isinstance(imgs, list):
|
||||
imgs = [imgs]
|
||||
|
||||
if modules.config.default_black_out_nsfw:
|
||||
if modules.config.default_black_out_nsfw or advanced_parameters.black_out_nsfw:
|
||||
progressbar(async_task, progressbar_index, 'Checking for NSFW content ...')
|
||||
imgs = censor_batch(imgs)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user