diff --git a/modules/private_logger.py b/modules/private_logger.py index 38c1942c..65072b43 100644 --- a/modules/private_logger.py +++ b/modules/private_logger.py @@ -42,28 +42,82 @@ def log(img, dic, wildprompt=''): ) js = ( - """""" + textArea.select() + document.execCommand('copy') + document.body.removeChild(textArea) + } + alert('Copied to Clipboard!\\nPaste to prompt area to load parameters.\\nCurrent clipboard content is:\\n\\n' + txt); + } + + // Extracting distinct data-model and data-wildprompts values + var modelSet = new Set(); + var wildpromptsSet = new Set(); + + document.querySelectorAll('.image-container').forEach(function(container) { + var model = container.getAttribute('data-model'); + var wildprompts = container.getAttribute('data-wildprompts'); + + modelSet.add(model); + wildpromptsSet.add(wildprompts); + }); + + // Creating checkboxes for data-model values + var modelCheckboxList = document.createElement('div'); + modelCheckboxList.innerHTML = '
Fooocus Log {date_string} (private)
\nAll images are clean, without any hidden data/meta, and safe to share with others.
\n\n" @@ -80,7 +134,15 @@ def log(img, dic, wildprompt=''): middle_part = existing_split[0] div_name = only_name.replace('.', '_') - item = f"