Git Product home page Git Product logo

test_my_prompt's Introduction

Made as a script for the AUTOMATIC1111/stable-diffusion-webui repository.

Test my prompt!

Have you ever used a very long prompt full of words that you are not sure have any actual impact on your image? Did you lose the courage to try to remove them one by one to test if their effects are worthy of your pwescious GPU?

WELL now you don't need any courage as this script has been MADE FOR YOU!

It generate as many images as there are words in your prompt (you can select the separator of course).

image

A most exquisite menu

πŸ’₯Note : the separator must be the same as the one you use. The default is ", " including the space. So make sure that each and every description in your prompt is separated the same way or they will be tested together. πŸ’₯

Installation

Copy the .py file in your /scripts folder or the folder of this repo in your extension folder.

Examples

Here the prompt is simply : "banana, on fire, snow" and so as you can see it has generated each image without each description in it.

grid-0020-2554476-Euler a-24-12-81761151-20221107152306 See how sad things are with no banana

Of course you can do it with more parameters.

"big titties goth gf, dress, swimsuit, beach, sunset, cloudy weather, iso100"

neg : "ugly, lowres, black and white, grascale, low quality, missing limbs, hands, painting, anime, 3d render, (wide angle:1.2), (naked:0.8)"

grid-0012-2847822-Euler a-32-7 5-ac3abe1d-20221106213735 It seems obvious that "dress" and "sunset" have a negative effect on that prompt.

You can also test your negative prompt :

grid-0013-2847822 0-Euler a-32-7 5-ac3abe1d-20221106213903

Another example :

grid-0023-3893916328 0-Euler a-32-7 5-ac3abe1d-20221106223202

Something very curious : removing "AUTOMATIC1111" simply removes the Gigachad from the picture. grid-0002-4184123397 0-Euler a-42-12 5-ac3abe1d-20221107150635 This may or may not have been edited.

test_my_prompt's People

Contributors

extraltodeus avatar triviador avatar wildbanjos avatar xyem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

test_my_prompt's Issues

Not actually testing

Hi, the script generates the right amount of images but with the same (original) prompt. Anyone else with this problem?

Does this still work?

Hi does this script still work? I've got it loaded and selected and all and it only produces 1 result, picking the last (, ) seperated prompt
firefox_aRjVYrwytU
firefox_RgVTPeHAJH

Creating an X/Y Plot?

Would it be possible to use the positive and negative words to create an X/Y Plot of both? That would you could see how each positive and negative word affect each other and the entire pcture

More of a request

Can you make a script where the text is something we can use with other plugins, when we compare different things, such that we can specify what part of a prompt should make it in the description?

Ideally we could use the comment format as to not change a prompt, to specify the item that should show up on top of the image.

Eg: [flaming,::-1]

Error in Auto1111 17.0 - "False" not defined

Not sure if this was an ongoing issue or just with the new version of A1111:

*** Error loading script: test_my_prompt_custom_script.py
Traceback (most recent call last):
File "I:\stable-diffusion-webui\modules\scripts.py", line 469, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "I:\stable-diffusion-webui\modules\script_loading.py", line 10, in load_module
module_spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "I:\stable-diffusion-webui\scripts\test_my_prompt_custom_script.py", line 1, in
{"payload":{"allShortcutsEnabled":false,"fileTree":{"scripts":{"items":[{"name":"test_my_prompt_custom_script.py","path":"scripts/test_my_prompt_custom_script.py","contentType":"file"}],"totalCount":1},"":{"items":[{"name":"scripts","path":"scripts","contentType":"directory"},{"name":"README.md","path":"README.md","contentType":"file"}],"totalCount":2}},"fileTreeProcessingTime":2.7708670000000004,"foldersToFetch":[],"reducedMotionEnabled":null,"repo":{"id":562606221,"defaultBranch":"main","name":"test_my_prompt","ownerLogin":"Extraltodeus","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2022-11-06T21:08:19.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/15731540?v=4","public":true,"private":false,"isOrgOwned":false},"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"main","listCacheKey":"v0:1672927730.556237","canEdit":false,"refType":"branch","currentOid":"97073a09356eca66f4fc924497d46f443186a220"},"path":"scripts/test_my_prompt_custom_script.py","currentUser":null,"blob":{"rawLines":["from modules.shared import opts, cmd_opts, state\r","from modules.processing import Processed, StableDiffusionProcessingImg2Img, process_images, images\r","from PIL import Image, ImageFont, ImageDraw, ImageOps\r","from modules.paths_internal import roboto_ttf_file\r","import modules.scripts as scripts\r","import gradio as gr\r","from collections import namedtuple\r","from random import randint\r","\r","class Script(scripts.Script):\r"," GridSaveFlags = namedtuple('GridSaveFlags', ['never_grid', 'always_grid', 'always_save_grid'], defaults=(False, False, False))\r"," grid_options_mapping = {\r"," "Use user settings": GridSaveFlags(),\r"," "Don't generate": GridSaveFlags(never_grid=True),\r"," "Generate": GridSaveFlags(always_grid=True),\r"," "Generate and always save": GridSaveFlags(always_grid=True, always_save_grid=True),\r"," }\r"," default_grid_opt = list(grid_options_mapping.keys())[-1]\r","\r"," def title(self):\r"," return "Test my prompt!"\r","\r"," def ui(self, is_img2img):\r"," neg_pos = gr.Dropdown(label="Test negative or positive", choices=["Positive","Negative"], value="Positive")\r"," skip_x_first = gr.Slider(minimum=0, maximum=128, step=1, label='Skip X first words', value=0)\r"," separator = gr.Textbox(label="Separator used", lines=1, value=", ")\r"," grid_option = gr.Radio(choices=list(self.grid_options_mapping.keys()), label='Grid generation', value=self.default_grid_opt)\r"," font_size = gr.Slider(minimum=12, maximum=64, step=1, label='Font size', value=32)\r"," return [neg_pos,skip_x_first,separator,grid_option,font_size]\r","\r"," def run(self, p,neg_pos,skip_x_first,separator,grid_option,font_size):\r"," def write_on_image(img, msg):\r"," ix,iy = img.size\r"," draw = ImageDraw.Draw(img)\r"," margin=2\r"," fontsize=font_size\r"," draw = ImageDraw.Draw(img)\r"," font = ImageFont.truetype(roboto_ttf_file, fontsize)\r"," text_height=iy-60\r"," tx = draw.textbbox((0,0),msg,font)\r"," draw.text((int((ix-tx[2])/2),text_height+margin),msg,(0,0,0),font=font)\r"," draw.text((int((ix-tx[2])/2),text_height-margin),msg,(0,0,0),font=font)\r"," draw.text((int((ix-tx[2])/2+margin),text_height),msg,(0,0,0),font=font)\r"," draw.text((int((ix-tx[2])/2-margin),text_height),msg,(0,0,0),font=font)\r"," draw.text((int((ix-tx[2])/2),text_height), msg,(255,255,255),font=font)\r"," return img\r","\r","\r"," p.do_not_save_samples = True\r"," initial_seed = p.seed\r"," if initial_seed == -1:\r"," initial_seed = randint(1000000,9999999)\r"," if neg_pos == "Positive":\r"," initial_prompt = p.prompt\r"," prompt_array = p.prompt\r"," else:\r"," initial_prompt = p.negative_prompt\r"," prompt_array = p.negative_prompt\r","\r"," prompt_array = prompt_array.split(separator)\r"," print("total images :", len(prompt_array))\r"," for g in range(len(prompt_array)+1):\r"," f = g-1\r"," if f >= 0 and f < skip_x_first:\r"," continue\r"," if f >= 0:\r"," new_prompt = separator.join([prompt_array[x] for x in range(len(prompt_array)) if x is not f])\r"," else:\r"," new_prompt = initial_prompt\r","\r"," if neg_pos == "Positive":\r"," p.prompt = new_prompt\r"," else:\r"," p.negative_prompt = new_prompt\r"," p.seed = initial_seed\r"," if g == 0:\r"," proc = process_images(p)\r"," else:\r"," appendimages = process_images(p)\r"," proc.images.insert(0,appendimages.images[0])\r"," proc.infotexts.insert(0,appendimages.infotexts[0])\r"," if f >= 0:\r"," proc.images[0] = write_on_image(proc.images[0], "no "+prompt_array[f])\r"," else:\r"," proc.images[0] = write_on_image(proc.images[0], "full prompt")\r","\r"," if opts.samples_save:\r"," images.save_image(proc.images[0], p.outpath_samples, "", proc.seed, proc.prompt, opts.samples_format, info= proc.info, p=p)\r","\r"," grid_flags = self.grid_options_mapping[grid_option]\r"," unwanted_grid_because_of_img_count = len(proc.images) < 2 and opts.grid_only_if_multiple\r"," if ((opts.return_grid or opts.grid_save) and not p.do_not_save_grid and not grid_flags.never_grid and not unwanted_grid_because_of_img_count) or grid_flags.always_grid:\r"," grid = images.image_grid(proc.images)\r"," proc.images.insert(0,grid)\r"," proc.infotexts.insert(0, proc.infotexts[-1])\r"," if opts.grid_save or grid_flags.always_save_grid:\r"," images.save_image(grid, p.outpath_grids, "grid", initial_seed, initial_prompt, opts.grid_format, info=proc.info, short_filename=not opts.grid_extended_filename, p=p, grid=True)\r"," return proc\r"],"stylingDirectives":[[{"start":0,"end":4,"cssClass":"pl-k"},{"start":5,"end":12,"cssClass":"pl-s1"},{"start":13,"end":19,"cssClass":"pl-s1"},{"start":20,"end":26,"cssClass":"pl-k"},{"start":27,"end":31,"cssClass":"pl-s1"},{"start":33,"end":41,"cssClass":"pl-s1"},{"start":43,"end":48,"cssClass":"pl-s1"}],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":5,"end":12,"cssClass":"pl-s1"},{"start":13,"end":23,"cssClass":"pl-s1"},{"start":24,"end":30,"cssClass":"pl-k"},{"start":31,"end":40,"cssClass":"pl-v"},{"start":42,"end":74,"cssClass":"pl-v"},{"start":76,"end":90,"cssClass":"pl-s1"},{"start":92,"end":98,"cssClass":"pl-s1"}],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":5,"end":8,"cssClass":"pl-v"},{"start":9,"end":15,"cssClass":"pl-k"},{"start":16,"end":21,"cssClass":"pl-v"},{"start":23,"end":32,"cssClass":"pl-v"},{"start":34,"end":43,"cssClass":"pl-v"},{"start":45,"end":53,"cssClass":"pl-v"}],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":5,"end":12,"cssClass":"pl-s1"},{"start":13,"end":27,"cssClass":"pl-s1"},{"start":28,"end":34,"cssClass":"pl-k"},{"start":35,"end":50,"cssClass":"pl-s1"}],[{"start":0,"end":6,"cssClass":"pl-k"},{"start":7,"end":14,"cssClass":"pl-s1"},{"start":15,"end":22,"cssClass":"pl-s1"},{"start":23,"end":25,"cssClass":"pl-k"},{"start":26,"end":33,"cssClass":"pl-s1"}],[{"start":0,"end":6,"cssClass":"pl-k"},{"start":7,"end":13,"cssClass":"pl-s1"},{"start":14,"end":16,"cssClass":"pl-k"},{"start":17,"end":19,"cssClass":"pl-s1"}],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":5,"end":16,"cssClass":"pl-s1"},{"start":17,"end":23,"cssClass":"pl-k"},{"start":24,"end":34,"cssClass":"pl-s1"}],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":5,"end":11,"cssClass":"pl-s1"},{"start":12,"end":18,"cssClass":"pl-k"},{"start":19,"end":26,"cssClass":"pl-s1"}],[],[{"start":0,"end":5,"cssClass":"pl-k"},{"start":6,"end":12,"cssClass":"pl-v"},{"start":13,"end":20,"cssClass":"pl-s1"},{"start":21,"end":27,"cssClass":"pl-v"}],[{"start":4,"end":17,"cssClass":"pl-v"},{"start":18,"end":19,"cssClass":"pl-c1"},{"start":20,"end":30,"cssClass":"pl-en"},{"start":31,"end":46,"cssClass":"pl-s"},{"start":49,"end":61,"cssClass":"pl-s"},{"start":63,"end":76,"cssClass":"pl-s"},{"start":78,"end":96,"cssClass":"pl-s"},{"start":99,"end":107,"cssClass":"pl-s1"},{"start":107,"end":108,"cssClass":"pl-c1"},{"start":109,"end":114,"cssClass":"pl-c1"},{"start":116,"end":121,"cssClass":"pl-c1"},{"start":123,"end":128,"cssClass":"pl-c1"}],[{"start":4,"end":24,"cssClass":"pl-s1"},{"start":25,"end":26,"cssClass":"pl-c1"}],[{"start":8,"end":27,"cssClass":"pl-s"},{"start":29,"end":42,"cssClass":"pl-v"}],[{"start":8,"end":24,"cssClass":"pl-s"},{"start":26,"end":39,"cssClass":"pl-v"},{"start":40,"end":50,"cssClass":"pl-s1"},{"start":50,"end":51,"cssClass":"pl-c1"},{"start":51,"end":55,"cssClass":"pl-c1"}],[{"start":8,"end":18,"cssClass":"pl-s"},{"start":20,"end":33,"cssClass":"pl-v"},{"start":34,"end":45,"cssClass":"pl-s1"},{"start":45,"end":46,"cssClass":"pl-c1"},{"start":46,"end":50,"cssClass":"pl-c1"}],[{"start":8,"end":34,"cssClass":"pl-s"},{"start":36,"end":49,"cssClass":"pl-v"},{"start":50,"end":61,"cssClass":"pl-s1"},{"start":61,"end":62,"cssClass":"pl-c1"},{"start":62,"end":66,"cssClass":"pl-c1"},{"start":68,"end":84,"cssClass":"pl-s1"},{"start":84,"end":85,"cssClass":"pl-c1"},{"start":85,"end":89,"cssClass":"pl-c1"}],[],[{"start":4,"end":20,"cssClass":"pl-s1"},{"start":21,"end":22,"cssClass":"pl-c1"},{"start":23,"end":27,"cssClass":"pl-en"},{"start":28,"end":48,"cssClass":"pl-s1"},{"start":49,"end":53,"cssClass":"pl-en"},{"start":57,"end":58,"cssClass":"pl-c1"},{"start":58,"end":59,"cssClass":"pl-c1"}],[],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":13,"cssClass":"pl-en"},{"start":14,"end":18,"cssClass":"pl-s1"}],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":15,"end":32,"cssClass":"pl-s"}],[],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":10,"cssClass":"pl-en"},{"start":11,"end":15,"cssClass":"pl-s1"},{"start":17,"end":27,"cssClass":"pl-s1"}],[{"start":8,"end":15,"cssClass":"pl-s1"},{"start":16,"end":17,"cssClass":"pl-c1"},{"start":18,"end":20,"cssClass":"pl-s1"},{"start":21,"end":29,"cssClass":"pl-v"},{"start":30,"end":35,"cssClass":"pl-s1"},{"start":35,"end":36,"cssClass":"pl-c1"},{"start":36,"end":63,"cssClass":"pl-s"},{"start":65,"end":72,"cssClass":"pl-s1"},{"start":72,"end":73,"cssClass":"pl-c1"},{"start":74,"end":84,"cssClass":"pl-s"},{"start":85,"end":95,"cssClass":"pl-s"},{"start":98,"end":103,"cssClass":"pl-s1"},{"start":103,"end":104,"cssClass":"pl-c1"},{"start":104,"end":114,"cssClass":"pl-s"}],[{"start":8,"end":20,"cssClass":"pl-s1"},{"start":21,"end":22,"cssClass":"pl-c1"},{"start":23,"end":25,"cssClass":"pl-s1"},{"start":26,"end":32,"cssClass":"pl-v"},{"start":33,"end":40,"cssClass":"pl-s1"},{"start":40,"end":41,"cssClass":"pl-c1"},{"start":41,"end":42,"cssClass":"pl-c1"},{"start":44,"end":51,"cssClass":"pl-s1"},{"start":51,"end":52,"cssClass":"pl-c1"},{"start":52,"end":55,"cssClass":"pl-c1"},{"start":57,"end":61,"cssClass":"pl-s1"},{"start":61,"end":62,"cssClass":"pl-c1"},{"start":62,"end":63,"cssClass":"pl-c1"},{"start":65,"end":70,"cssClass":"pl-s1"},{"start":70,"end":71,"cssClass":"pl-c1"},{"start":71,"end":91,"cssClass":"pl-s"},{"start":93,"end":98,"cssClass":"pl-s1"},{"start":98,"end":99,"cssClass":"pl-c1"},{"start":99,"end":100,"cssClass":"pl-c1"}],[{"start":8,"end":17,"cssClass":"pl-s1"},{"start":18,"end":19,"cssClass":"pl-c1"},{"start":20,"end":22,"cssClass":"pl-s1"},{"start":23,"end":30,"cssClass":"pl-v"},{"start":31,"end":36,"cssClass":"pl-s1"},{"start":36,"end":37,"cssClass":"pl-c1"},{"start":37,"end":53,"cssClass":"pl-s"},{"start":55,"end":60,"cssClass":"pl-s1"},{"start":60,"end":61,"cssClass":"pl-c1"},{"start":61,"end":62,"cssClass":"pl-c1"},{"start":64,"end":69,"cssClass":"pl-s1"},{"start":69,"end":70,"cssClass":"pl-c1"},{"start":70,"end":74,"cssClass":"pl-s"}],[{"start":8,"end":19,"cssClass":"pl-s1"},{"start":20,"end":21,"cssClass":"pl-c1"},{"start":22,"end":24,"cssClass":"pl-s1"},{"start":25,"end":30,"cssClass":"pl-v"},{"start":31,"end":38,"cssClass":"pl-s1"},{"start":38,"end":39,"cssClass":"pl-c1"},{"start":39,"end":43,"cssClass":"pl-en"},{"start":44,"end":48,"cssClass":"pl-s1"},{"start":49,"end":69,"cssClass":"pl-s1"},{"start":70,"end":74,"cssClass":"pl-en"},{"start":79,"end":84,"cssClass":"pl-s1"},{"start":84,"end":85,"cssClass":"pl-c1"},{"start":85,"end":102,"cssClass":"pl-s"},{"start":104,"end":109,"cssClass":"pl-s1"},{"start":109,"end":110,"cssClass":"pl-c1"},{"start":110,"end":114,"cssClass":"pl-s1"},{"start":115,"end":131,"cssClass":"pl-s1"}],[{"start":8,"end":17,"cssClass":"pl-s1"},{"start":18,"end":19,"cssClass":"pl-c1"},{"start":20,"end":22,"cssClass":"pl-s1"},{"start":23,"end":29,"cssClass":"pl-v"},{"start":30,"end":37,"cssClass":"pl-s1"},{"start":37,"end":38,"cssClass":"pl-c1"},{"start":38,"end":40,"cssClass":"pl-c1"},{"start":42,"end":49,"cssClass":"pl-s1"},{"start":49,"end":50,"cssClass":"pl-c1"},{"start":50,"end":52,"cssClass":"pl-c1"},{"start":54,"end":58,"cssClass":"pl-s1"},{"start":58,"end":59,"cssClass":"pl-c1"},{"start":59,"end":60,"cssClass":"pl-c1"},{"start":62,"end":67,"cssClass":"pl-s1"},{"start":67,"end":68,"cssClass":"pl-c1"},{"start":68,"end":79,"cssClass":"pl-s"},{"start":81,"end":86,"cssClass":"pl-s1"},{"start":86,"end":87,"cssClass":"pl-c1"},{"start":87,"end":89,"cssClass":"pl-c1"}],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":16,"end":23,"cssClass":"pl-s1"},{"start":24,"end":36,"cssClass":"pl-s1"},{"start":37,"end":46,"cssClass":"pl-s1"},{"start":47,"end":58,"cssClass":"pl-s1"},{"start":59,"end":68,"cssClass":"pl-s1"}],[],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":11,"cssClass":"pl-en"},{"start":12,"end":16,"cssClass":"pl-s1"},{"start":18,"end":19,"cssClass":"pl-s1"},{"start":20,"end":27,"cssClass":"pl-s1"},{"start":28,"end":40,"cssClass":"pl-s1"},{"start":41,"end":50,"cssClass":"pl-s1"},{"start":51,"end":62,"cssClass":"pl-s1"},{"start":63,"end":72,"cssClass":"pl-s1"}],[{"start":8,"end":11,"cssClass":"pl-k"},{"start":12,"end":26,"cssClass":"pl-en"},{"start":27,"end":30,"cssClass":"pl-s1"},{"start":32,"end":35,"cssClass":"pl-s1"}],[{"start":12,"end":14,"cssClass":"pl-s1"},{"start":15,"end":17,"cssClass":"pl-s1"},{"start":18,"end":19,"cssClass":"pl-c1"},{"start":20,"end":23,"cssClass":"pl-s1"},{"start":24,"end":28,"cssClass":"pl-s1"}],[{"start":12,"end":16,"cssClass":"pl-s1"},{"start":17,"end":18,"cssClass":"pl-c1"},{"start":19,"end":28,"cssClass":"pl-v"},{"start":29,"end":33,"cssClass":"pl-v"},{"start":34,"end":37,"cssClass":"pl-s1"}],[{"start":12,"end":18,"cssClass":"pl-s1"},{"start":18,"end":19,"cssClass":"pl-c1"},{"start":19,"end":20,"cssClass":"pl-c1"}],[{"start":12,"end":20,"cssClass":"pl-s1"},{"start":20,"end":21,"cssClass":"pl-c1"},{"start":21,"end":30,"cssClass":"pl-s1"}],[{"start":12,"end":16,"cssClass":"pl-s1"},{"start":17,"end":18,"cssClass":"pl-c1"},{"start":19,"end":28,"cssClass":"pl-v"},{"start":29,"end":33,"cssClass":"pl-v"},{"start":34,"end":37,"cssClass":"pl-s1"}],[{"start":12,"end":16,"cssClass":"pl-s1"},{"start":17,"end":18,"cssClass":"pl-c1"},{"start":19,"end":28,"cssClass":"pl-v"},{"start":29,"end":37,"cssClass":"pl-en"},{"start":38,"end":53,"cssClass":"pl-s1"},{"start":55,"end":63,"cssClass":"pl-s1"}],[{"start":12,"end":23,"cssClass":"pl-s1"},{"start":23,"end":24,"cssClass":"pl-c1"},{"start":24,"end":26,"cssClass":"pl-s1"},{"start":26,"end":27,"cssClass":"pl-c1"},{"start":27,"end":29,"cssClass":"pl-c1"}],[{"start":12,"end":14,"cssClass":"pl-s1"},{"start":15,"end":16,"cssClass":"pl-c1"},{"start":17,"end":21,"cssClass":"pl-s1"},{"start":22,"end":30,"cssClass":"pl-en"},{"start":32,"end":33,"cssClass":"pl-c1"},{"start":34,"end":35,"cssClass":"pl-c1"},{"start":37,"end":40,"cssClass":"pl-s1"},{"start":41,"end":45,"cssClass":"pl-s1"}],[{"start":12,"end":16,"cssClass":"pl-s1"},{"start":17,"end":21,"cssClass":"pl-en"},{"start":23,"end":26,"cssClass":"pl-en"},{"start":28,"end":30,"cssClass":"pl-s1"},{"start":30,"end":31,"cssClass":"pl-c1"},{"start":31,"end":33,"cssClass":"pl-s1"},{"start":34,"end":35,"cssClass":"pl-c1"},{"start":37,"end":38,"cssClass":"pl-c1"},{"start":38,"end":39,"cssClass":"pl-c1"},{"start":41,"end":52,"cssClass":"pl-s1"},{"start":52,"end":53,"cssClass":"pl-c1"},{"start":53,"end":59,"cssClass":"pl-s1"},{"start":61,"end":64,"cssClass":"pl-s1"},{"start":66,"end":67,"cssClass":"pl-c1"},{"start":68,"end":69,"cssClass":"pl-c1"},{"start":70,"end":71,"cssClass":"pl-c1"},{"start":73,"end":77,"cssClass":"pl-s1"},{"start":77,"end":78,"cssClass":"pl-c1"},{"start":78,"end":82,"cssClass":"pl-s1"}],[{"start":12,"end":16,"cssClass":"pl-s1"},{"start":17,"end":21,"cssClass":"pl-en"},{"start":23,"end":26,"cssClass":"pl-en"},{"start":28,"end":30,"cssClass":"pl-s1"},{"start":30,"end":31,"cssClass":"pl-c1"},{"start":31,"end":33,"cssClass":"pl-s1"},{"start":34,"end":35,"cssClass":"pl-c1"},{"start":37,"end":38,"cssClass":"pl-c1"},{"start":38,"end":39,"cssClass":"pl-c1"},{"start":41,"end":52,"cssClass":"pl-s1"},{"start":52,"end":53,"cssClass":"pl-c1"},{"start":53,"end":59,"cssClass":"pl-s1"},{"start":61,"end":64,"cssClass":"pl-s1"},{"start":66,"end":67,"cssClass":"pl-c1"},{"start":68,"end":69,"cssClass":"pl-c1"},{"start":70,"end":71,"cssClass":"pl-c1"},{"start":73,"end":77,"cssClass":"pl-s1"},{"start":77,"end":78,"cssClass":"pl-c1"},{"start":78,"end":82,"cssClass":"pl-s1"}],[{"start":12,"end":16,"cssClass":"pl-s1"},{"start":17,"end":21,"cssClass":"pl-en"},{"start":23,"end":26,"cssClass":"pl-en"},{"start":28,"end":30,"cssClass":"pl-s1"},{"start":30,"end":31,"cssClass":"pl-c1"},{"start":31,"end":33,"cssClass":"pl-s1"},{"start":34,"end":35,"cssClass":"pl-c1"},{"start":37,"end":38,"cssClass":"pl-c1"},{"start":38,"end":39,"cssClass":"pl-c1"},{"start":39,"end":40,"cssClass":"pl-c1"},{"start":40,"end":46,"cssClass":"pl-s1"},{"start":48,"end":59,"cssClass":"pl-s1"},{"start":61,"end":64,"cssClass":"pl-s1"},{"start":66,"end":67,"cssClass":"pl-c1"},{"start":68,"end":69,"cssClass":"pl-c1"},{"start":70,"end":71,"cssClass":"pl-c1"},{"start":73,"end":77,"cssClass":"pl-s1"},{"start":77,"end":78,"cssClass":"pl-c1"},{"start":78,"end":82,"cssClass":"pl-s1"}],[{"start":12,"end":16,"cssClass":"pl-s1"},{"start":17,"end":21,"cssClass":"pl-en"},{"start":23,"end":26,"cssClass":"pl-en"},{"start":28,"end":30,"cssClass":"pl-s1"},{"start":30,"end":31,"cssClass":"pl-c1"},{"start":31,"end":33,"cssClass":"pl-s1"},{"start":34,"end":35,"cssClass":"pl-c1"},{"start":37,"end":38,"cssClass":"pl-c1"},{"start":38,"end":39,"cssClass":"pl-c1"},{"start":39,"end":40,"cssClass":"pl-c1"},{"start":40,"end":46,"cssClass":"pl-s1"},{"start":48,"end":59,"cssClass":"pl-s1"},{"start":61,"end":64,"cssClass":"pl-s1"},{"start":66,"end":67,"cssClass":"pl-c1"},{"start":68,"end":69,"cssClass":"pl-c1"},{"start":70,"end":71,"cssClass":"pl-c1"},{"start":73,"end":77,"cssClass":"pl-s1"},{"start":77,"end":78,"cssClass":"pl-c1"},{"start":78,"end":82,"cssClass":"pl-s1"}],[{"start":12,"end":16,"cssClass":"pl-s1"},{"start":17,"end":21,"cssClass":"pl-en"},{"start":23,"end":26,"cssClass":"pl-en"},{"start":28,"end":30,"cssClass":"pl-s1"},{"start":30,"end":31,"cssClass":"pl-c1"},{"start":31,"end":33,"cssClass":"pl-s1"},{"start":34,"end":35,"cssClass":"pl-c1"},{"start":37,"end":38,"cssClass":"pl-c1"},{"start":38,"end":39,"cssClass":"pl-c1"},{"start":41,"end":52,"cssClass":"pl-s1"},{"start":55,"end":58,"cssClass":"pl-s1"},{"start":60,"end":63,"cssClass":"pl-c1"},{"start":64,"end":67,"cssClass":"pl-c1"},{"start":68,"end":71,"cssClass":"pl-c1"},{"start":73,"end":77,"cssClass":"pl-s1"},{"start":77,"end":78,"cssClass":"pl-c1"},{"start":78,"end":82,"cssClass":"pl-s1"}],[{"start":12,"end":18,"cssClass":"pl-k"},{"start":19,"end":22,"cssClass":"pl-s1"}],[],[],[{"start":8,"end":9,"cssClass":"pl-s1"},{"start":10,"end":29,"cssClass":"pl-s1"},{"start":30,"end":31,"cssClass":"pl-c1"},{"start":32,"end":36,"cssClass":"pl-c1"}],[{"start":8,"end":20,"cssClass":"pl-s1"},{"start":21,"end":22,"cssClass":"pl-c1"},{"start":23,"end":24,"cssClass":"pl-s1"},{"start":25,"end":29,"cssClass":"pl-s1"}],[{"start":8,"end":10,"cssClass":"pl-k"},{"start":11,"end":23,"cssClass":"pl-s1"},{"start":24,"end":26,"cssClass":"pl-c1"},{"start":27,"end":28,"cssClass":"pl-c1"},{"start":28,"end":29,"cssClass":"pl-c1"}],[{"start":12,"end":24,"cssClass":"pl-s1"},{"start":25,"end":26,"cssClass":"pl-c1"},{"start":27,"end":34,"cssClass":"pl-en"},{"start":35,"end":42,"cssClass":"pl-c1"},{"start":43,"end":50,"cssClass":"pl-c1"}],[{"start":8,"end":10,"cssClass":"pl-k"},{"start":11,"end":18,"cssClass":"pl-s1"},{"start":19,"end":21,"cssClass":"pl-c1"},{"start":22,"end":32,"cssClass":"pl-s"}],[{"start":12,"end":26,"cssClass":"pl-s1"},{"start":27,"end":28,"cssClass":"pl-c1"},{"start":30,"end":31,"cssClass":"pl-s1"},{"start":32,"end":38,"cssClass":"pl-s1"}],[{"start":12,"end":24,"cssClass":"pl-s1"},{"start":25,"end":26,"cssClass":"pl-c1"},{"start":27,"end":28,"cssClass":"pl-s1"},{"start":29,"end":35,"cssClass":"pl-s1"}],[{"start":8,"end":12,"cssClass":"pl-k"}],[{"start":12,"end":26,"cssClass":"pl-s1"},{"start":27,"end":28,"cssClass":"pl-c1"},{"start":30,"end":31,"cssClass":"pl-s1"},{"start":32,"end":47,"cssClass":"pl-s1"}],[{"start":12,"end":24,"cssClass":"pl-s1"},{"start":25,"end":26,"cssClass":"pl-c1"},{"start":27,"end":28,"cssClass":"pl-s1"},{"start":29,"end":44,"cssClass":"pl-s1"}],[],[{"start":8,"end":20,"cssClass":"pl-s1"},{"start":21,"end":22,"cssClass":"pl-c1"},{"start":23,"end":35,"cssClass":"pl-s1"},{"start":36,"end":41,"cssClass":"pl-en"},{"start":42,"end":51,"cssClass":"pl-s1"}],[{"start":8,"end":13,"cssClass":"pl-en"},{"start":14,"end":30,"cssClass":"pl-s"},{"start":32,"end":35,"cssClass":"pl-en"},{"start":36,"end":48,"cssClass":"pl-s1"}],[{"start":8,"end":11,"cssClass":"pl-k"},{"start":12,"end":13,"cssClass":"pl-s1"},{"start":14,"end":16,"cssClass":"pl-c1"},{"start":17,"end":22,"cssClass":"pl-en"},{"start":23,"end":26,"cssClass":"pl-en"},{"start":27,"end":39,"cssClass":"pl-s1"},{"start":40,"end":41,"cssClass":"pl-c1"},{"start":41,"end":42,"cssClass":"pl-c1"}],[{"start":12,"end":13,"cssClass":"pl-s1"},{"start":14,"end":15,"cssClass":"pl-c1"},{"start":16,"end":17,"cssClass":"pl-s1"},{"start":17,"end":18,"cssClass":"pl-c1"},{"start":18,"end":19,"cssClass":"pl-c1"}],[{"start":12,"end":14,"cssClass":"pl-k"},{"start":15,"end":16,"cssClass":"pl-s1"},{"start":17,"end":19,"cssClass":"pl-c1"},{"start":20,"end":21,"cssClass":"pl-c1"},{"start":22,"end":25,"cssClass":"pl-c1"},{"start":26,"end":27,"cssClass":"pl-s1"},{"start":28,"end":29,"cssClass":"pl-c1"},{"start":30,"end":42,"cssClass":"pl-s1"}],[{"start":16,"end":24,"cssClass":"pl-k"}],[{"start":12,"end":14,"cssClass":"pl-k"},{"start":15,"end":16,"cssClass":"pl-s1"},{"start":17,"end":19,"cssClass":"pl-c1"},{"start":20,"end":21,"cssClass":"pl-c1"}],[{"start":16,"end":26,"cssClass":"pl-s1"},{"start":27,"end":28,"cssClass":"pl-c1"},{"start":30,"end":39,"cssClass":"pl-s1"},{"start":40,"end":44,"cssClass":"pl-en"},{"start":46,"end":58,"cssClass":"pl-s1"},{"start":59,"end":60,"cssClass":"pl-s1"},{"start":62,"end":65,"cssClass":"pl-k"},{"start":66,"end":67,"cssClass":"pl-s1"},{"start":68,"end":70,"cssClass":"pl-c1"},{"start":71,"end":76,"cssClass":"pl-en"},{"start":77,"end":80,"cssClass":"pl-en"},{"start":81,"end":93,"cssClass":"pl-s1"},{"start":96,"end":98,"cssClass":"pl-k"},{"start":99,"end":100,"cssClass":"pl-s1"},{"start":101,"end":103,"cssClass":"pl-c1"},{"start":104,"end":107,"cssClass":"pl-c1"},{"start":108,"end":109,"cssClass":"pl-s1"}],[{"start":12,"end":16,"cssClass":"pl-k"}],[{"start":16,"end":26,"cssClass":"pl-s1"},{"start":27,"end":28,"cssClass":"pl-c1"},{"start":29,"end":43,"cssClass":"pl-s1"}],[],[{"start":12,"end":14,"cssClass":"pl-k"},{"start":15,"end":22,"cssClass":"pl-s1"},{"start":23,"end":25,"cssClass":"pl-c1"},{"start":26,"end":36,"cssClass":"pl-s"}],[{"start":16,"end":17,"cssClass":"pl-s1"},{"start":18,"end":24,"cssClass":"pl-s1"},{"start":25,"end":26,"cssClass":"pl-c1"},{"start":27,"end":37,"cssClass":"pl-s1"}],[{"start":12,"end":16,"cssClass":"pl-k"}],[{"start":16,"end":17,"cssClass":"pl-s1"},{"start":18,"end":33,"cssClass":"pl-s1"},{"start":34,"end":35,"cssClass":"pl-c1"},{"start":36,"end":46,"cssClass":"pl-s1"}],[{"start":12,"end":13,"cssClass":"pl-s1"},{"start":14,"end":18,"cssClass":"pl-s1"},{"start":19,"end":20,"cssClass":"pl-c1"},{"start":21,"end":33,"cssClass":"pl-s1"}],[{"start":12,"end":14,"cssClass":"pl-k"},{"start":15,"end":16,"cssClass":"pl-s1"},{"start":17,"end":19,"cssClass":"pl-c1"},{"start":20,"end":21,"cssClass":"pl-c1"}],[{"start":16,"end":20,"cssClass":"pl-s1"},{"start":21,"end":22,"cssClass":"pl-c1"},{"start":23,"end":37,"cssClass":"pl-en"},{"start":38,"end":39,"cssClass":"pl-s1"}],[{"start":12,"end":16,"cssClass":"pl-k"}],[{"start":16,"end":28,"cssClass":"pl-s1"},{"start":29,"end":30,"cssClass":"pl-c1"},{"start":31,"end":45,"cssClass":"pl-en"},{"start":46,"end":47,"cssClass":"pl-s1"}],[{"start":16,"end":20,"cssClass":"pl-s1"},{"start":21,"end":27,"cssClass":"pl-s1"},{"start":28,"end":34,"cssClass":"pl-en"},{"start":35,"end":36,"cssClass":"pl-c1"},{"start":37,"end":49,"cssClass":"pl-s1"},{"start":50,"end":56,"cssClass":"pl-s1"},{"start":57,"end":58,"cssClass":"pl-c1"}],[{"start":16,"end":20,"cssClass":"pl-s1"},{"start":21,"end":30,"cssClass":"pl-s1"},{"start":31,"end":37,"cssClass":"pl-en"},{"start":38,"end":39,"cssClass":"pl-c1"},{"start":40,"end":52,"cssClass":"pl-s1"},{"start":53,"end":62,"cssClass":"pl-s1"},{"start":63,"end":64,"cssClass":"pl-c1"}],[{"start":12,"end":14,"cssClass":"pl-k"},{"start":15,"end":16,"cssClass":"pl-s1"},{"start":17,"end":19,"cssClass":"pl-c1"},{"start":20,"end":21,"cssClass":"pl-c1"}],[{"start":16,"end":20,"cssClass":"pl-s1"},{"start":21,"end":27,"cssClass":"pl-s1"},{"start":28,"end":29,"cssClass":"pl-c1"},{"start":31,"end":32,"cssClass":"pl-c1"},{"start":33,"end":47,"cssClass":"pl-en"},{"start":48,"end":52,"cssClass":"pl-s1"},{"start":53,"end":59,"cssClass":"pl-s1"},{"start":60,"end":61,"cssClass":"pl-c1"},{"start":64,"end":69,"cssClass":"pl-s"},{"start":69,"end":70,"cssClass":"pl-c1"},{"start":70,"end":82,"cssClass":"pl-s1"},{"start":83,"end":84,"cssClass":"pl-s1"}],[{"start":12,"end":16,"cssClass":"pl-k"}],[{"start":16,"end":20,"cssClass":"pl-s1"},{"start":21,"end":27,"cssClass":"pl-s1"},{"start":28,"end":29,"cssClass":"pl-c1"},{"start":31,"end":32,"cssClass":"pl-c1"},{"start":33,"end":47,"cssClass":"pl-en"},{"start":48,"end":52,"cssClass":"pl-s1"},{"start":53,"end":59,"cssClass":"pl-s1"},{"start":60,"end":61,"cssClass":"pl-c1"},{"start":64,"end":77,"cssClass":"pl-s"}],[],[{"start":12,"end":14,"cssClass":"pl-k"},{"start":15,"end":19,"cssClass":"pl-s1"},{"start":20,"end":32,"cssClass":"pl-s1"}],[{"start":16,"end":22,"cssClass":"pl-s1"},{"start":23,"end":33,"cssClass":"pl-en"},{"start":34,"end":38,"cssClass":"pl-s1"},{"start":39,"end":45,"cssClass":"pl-s1"},{"start":46,"end":47,"cssClass":"pl-c1"},{"start":50,"end":51,"cssClass":"pl-s1"},{"start":52,"end":67,"cssClass":"pl-s1"},{"start":69,"end":71,"cssClass":"pl-s"},{"start":73,"end":77,"cssClass":"pl-s1"},{"start":78,"end":82,"cssClass":"pl-s1"},{"start":84,"end":88,"cssClass":"pl-s1"},{"start":89,"end":95,"cssClass":"pl-s1"},{"start":97,"end":101,"cssClass":"pl-s1"},{"start":102,"end":116,"cssClass":"pl-s1"},{"start":118,"end":122,"cssClass":"pl-s1"},{"start":122,"end":123,"cssClass":"pl-c1"},{"start":124,"end":128,"cssClass":"pl-s1"},{"start":129,"end":133,"cssClass":"pl-s1"},{"start":135,"end":136,"cssClass":"pl-s1"},{"start":136,"end":137,"cssClass":"pl-c1"},{"start":137,"end":138,"cssClass":"pl-s1"}],[],[{"start":8,"end":18,"cssClass":"pl-s1"},{"start":19,"end":20,"cssClass":"pl-c1"},{"start":21,"end":25,"cssClass":"pl-s1"},{"start":26,"end":46,"cssClass":"pl-s1"},{"start":47,"end":58,"cssClass":"pl-s1"}],[{"start":8,"end":42,"cssClass":"pl-s1"},{"start":43,"end":44,"cssClass":"pl-c1"},{"start":45,"end":48,"cssClass":"pl-en"},{"start":49,"end":53,"cssClass":"pl-s1"},{"start":54,"end":60,"cssClass":"pl-s1"},{"start":62,"end":63,"cssClass":"pl-c1"},{"start":64,"end":65,"cssClass":"pl-c1"},{"start":66,"end":69,"cssClass":"pl-c1"},{"start":70,"end":74,"cssClass":"pl-s1"},{"start":75,"end":96,"cssClass":"pl-s1"}],[{"start":8,"end":10,"cssClass":"pl-k"},{"start":13,"end":17,"cssClass":"pl-s1"},{"start":18,"end":29,"cssClass":"pl-s1"},{"start":30,"end":32,"cssClass":"pl-c1"},{"start":33,"end":37,"cssClass":"pl-s1"},{"start":38,"end":47,"cssClass":"pl-s1"},{"start":49,"end":52,"cssClass":"pl-c1"},{"start":53,"end":56,"cssClass":"pl-c1"},{"start":57,"end":58,"cssClass":"pl-s1"},{"start":59,"end":75,"cssClass":"pl-s1"},{"start":76,"end":79,"cssClass":"pl-c1"},{"start":80,"end":83,"cssClass":"pl-c1"},{"start":84,"end":94,"cssClass":"pl-s1"},{"start":95,"end":105,"cssClass":"pl-s1"},{"start":106,"end":109,"cssClass":"pl-c1"},{"start":110,"end":113,"cssClass":"pl-c1"},{"start":114,"end":148,"cssClass":"pl-s1"},{"start":150,"end":152,"cssClass":"pl-c1"},{"start":153,"end":163,"cssClass":"pl-s1"},{"start":164,"end":175,"cssClass":"pl-s1"}],[{"start":12,"end":16,"cssClass":"pl-s1"},{"start":17,"end":18,"cssClass":"pl-c1"},{"start":19,"end":25,"cssClass":"pl-s1"},{"start":26,"end":36,"cssClass":"pl-en"},{"start":37,"end":41,"cssClass":"pl-s1"},{"start":42,"end":48,"cssClass":"pl-s1"}],[{"start":12,"end":16,"cssClass":"pl-s1"},{"start":17,"end":23,"cssClass":"pl-s1"},{"start":24,"end":30,"cssClass":"pl-en"},{"start":31,"end":32,"cssClass":"pl-c1"},{"start":33,"end":37,"cssClass":"pl-s1"}],[{"start":12,"end":16,"cssClass":"pl-s1"},{"start":17,"end":26,"cssClass":"pl-s1"},{"start":27,"end":33,"cssClass":"pl-en"},{"start":34,"end":35,"cssClass":"pl-c1"},{"start":37,"end":41,"cssClass":"pl-s1"},{"start":42,"end":51,"cssClass":"pl-s1"},{"start":52,"end":53,"cssClass":"pl-c1"},{"start":53,"end":54,"cssClass":"pl-c1"}],[{"start":12,"end":14,"cssClass":"pl-k"},{"start":15,"end":19,"cssClass":"pl-s1"},{"start":20,"end":29,"cssClass":"pl-s1"},{"start":30,"end":32,"cssClass":"pl-c1"},{"start":33,"end":43,"cssClass":"pl-s1"},{"start":44,"end":60,"cssClass":"pl-s1"}],[{"start":16,"end":22,"cssClass":"pl-s1"},{"start":23,"end":33,"cssClass":"pl-en"},{"start":34,"end":38,"cssClass":"pl-s1"},{"start":40,"end":41,"cssClass":"pl-s1"},{"start":42,"end":55,"cssClass":"pl-s1"},{"start":57,"end":63,"cssClass":"pl-s"},{"start":65,"end":77,"cssClass":"pl-s1"},{"start":79,"end":93,"cssClass":"pl-s1"},{"start":95,"end":99,"cssClass":"pl-s1"},{"start":100,"end":111,"cssClass":"pl-s1"},{"start":113,"end":117,"cssClass":"pl-s1"},{"start":117,"end":118,"cssClass":"pl-c1"},{"start":118,"end":122,"cssClass":"pl-s1"},{"start":123,"end":127,"cssClass":"pl-s1"},{"start":129,"end":143,"cssClass":"pl-s1"},{"start":143,"end":144,"cssClass":"pl-c1"},{"start":144,"end":147,"cssClass":"pl-c1"},{"start":148,"end":152,"cssClass":"pl-s1"},{"start":153,"end":175,"cssClass":"pl-s1"},{"start":177,"end":178,"cssClass":"pl-s1"},{"start":178,"end":179,"cssClass":"pl-c1"},{"start":179,"end":180,"cssClass":"pl-s1"},{"start":182,"end":186,"cssClass":"pl-s1"},{"start":186,"end":187,"cssClass":"pl-c1"},{"start":187,"end":191,"cssClass":"pl-c1"}],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":15,"end":19,"cssClass":"pl-s1"}]],"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/Extraltodeus/test_my_prompt/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null,"repoAlertsPath":"/Extraltodeus/test_my_prompt/security/dependabot","repoSecurityAndAnalysisPath":"/Extraltodeus/test_my_prompt/settings/security_analysis","repoOwnerIsOrg":false,"currentUserCanAdminRepo":false},"displayName":"test_my_prompt_custom_script.py","displayUrl":"https://github.com/Extraltodeus/test_my_prompt/blob/main/scripts/test_my_prompt_custom_script.py?raw=true","headerInfo":{"blobSize":"4.77 KB","deleteInfo":{"deleteTooltip":"You must be signed in to make or propose changes"},"editInfo":{"editTooltip":"You must be signed in to make or propose changes"},"ghDesktopPath":"https://desktop.github.com","gitLfsPath":null,"onBranch":true,"shortPath":"a0f20ed","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2FExtraltodeus%2Ftest_my_prompt%2Fblob%2Fmain%2Fscripts%2Ftest_my_prompt_custom_script.py","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"98","truncatedSloc":"88"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplateHelpUrl":"https://docs.github.com/articles/about-issue-and-pull-request-templates","issueTemplate":null,"discussionTemplate":null,"language":"Python","languageID":303,"large":false,"loggedIn":false,"newDiscussionPath":"/Extraltodeus/test_my_prompt/discussions/new","newIssuePath":"/Extraltodeus/test_my_prompt/issues/new","planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/Extraltodeus/test_my_prompt/blob/main/scripts/test_my_prompt_custom_script.py","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","dismissStackNoticePath":"/settings/dismiss-notice/publish_stack_from_file","releasePath":"/Extraltodeus/test_my_prompt/releases/new?marketplace=true","showPublishActionBanner":false,"showPublishStackBanner":false},"rawBlobUrl":"https://github.com/Extraltodeus/test_my_prompt/raw/main/scripts/test_my_prompt_custom_script.py","renderImageOrRaw":false,"richText":null,"renderedFileInfo":null,"shortPath":null,"tabSize":8,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"repoOwner":"Extraltodeus","repoName":"test_my_prompt","showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","showDependabotConfigurationBanner":false,"actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":{"timed_out":false,"not_analyzed":false,"symbols":[{"name":"Script","kind":"class","ident_start":385,"ident_end":391,"extent_start":379,"extent_end":4885,"fully_qualified_name":"Script","ident_utf16":{"start":{"line_number":9,"utf16_col":6},"end":{"line_number":9,"utf16_col":12}},"extent_utf16":{"start":{"line_number":9,"utf16_col":0},"end":{"line_number":97,"utf16_col":19}}},{"name":"GridSaveFlags","kind":"constant","ident_start":414,"ident_end":427,"extent_start":414,"extent_end":540,"fully_qualified_name":"Script.GridSaveFlags","ident_utf16":{"start":{"line_number":10,"utf16_col":4},"end":{"line_number":10,"utf16_col":17}},"extent_utf16":{"start":{"line_number":10,"utf16_col":4},"end":{"line_number":10,"utf16_col":130}}},{"name":"grid_options_mapping","kind":"constant","ident_start":546,"ident_end":566,"extent_start":546,"extent_end":834,"fully_qualified_name":"Script.grid_options_mapping","ident_utf16":{"start":{"line_number":11,"utf16_col":4},"end":{"line_number":11,"utf16_col":24}},"extent_utf16":{"start":{"line_number":11,"utf16_col":4},"end":{"line_number":16,"utf16_col":9}}},{"name":"default_grid_opt","kind":"constant","ident_start":840,"ident_end":856,"extent_start":840,"extent_end":896,"fully_qualified_name":"Script.default_grid_opt","ident_utf16":{"start":{"line_number":17,"utf16_col":4},"end":{"line_number":17,"utf16_col":20}},"extent_utf16":{"start":{"line_number":17,"utf16_col":4},"end":{"line_number":17,"utf16_col":60}}},{"name":"title","kind":"function","ident_start":908,"ident_end":913,"extent_start":904,"extent_end":954,"fully_qualified_name":"Script.title","ident_utf16":{"start":{"line_number":19,"utf16_col":8},"end":{"line_number":19,"utf16_col":13}},"extent_utf16":{"start":{"line_number":19,"utf16_col":4},"end":{"line_number":20,"utf16_col":32}}},{"name":"ui","kind":"function","ident_start":966,"ident_end":968,"extent_start":962,"extent_end":1581,"fully_qualified_name":"Script.ui","ident_utf16":{"start":{"line_number":22,"utf16_col":8},"end":{"line_number":22,"utf16_col":10}},"extent_utf16":{"start":{"line_number":22,"utf16_col":4},"end":{"line_number":28,"utf16_col":69}}},{"name":"run","kind":"function","ident_start":1593,"ident_end":1596,"extent_start":1589,"extent_end":4885,"fully_qualified_name":"Script.run","ident_utf16":{"start":{"line_number":30,"utf16_col":8},"end":{"line_number":30,"utf16_col":11}},"extent_utf16":{"start":{"line_number":30,"utf16_col":4},"end":{"line_number":97,"utf16_col":19}}},{"name":"write_on_image","kind":"function","ident_start":1673,"ident_end":1687,"extent_start":1669,"extent_end":2456,"fully_qualified_name":"Script.write_on_image","ident_utf16":{"start":{"line_number":31,"utf16_col":12},"end":{"line_number":31,"utf16_col":26}},"extent_utf16":{"start":{"line_number":31,"utf16_col":8},"end":{"line_number":45,"utf16_col":22}}}]}},"copilotInfo":null,"copilotAccessAllowed":false,"csrf_tokens":{"/Extraltodeus/test_my_prompt/branches":{"post":"IxUIjfP-A8_v8NAPYspdigvI5nS8Ljwiu1pkG2PVVChjpiXCvr0hemMS_iiJm8VeuklWOxhyqcs_8n2BuaXe2A"},"/repos/preferences":{"post":"8RBIJw9AoBvn5qw4RSl8DEq8Bsw-e61O8fri2FCT20S7qY1O29nsRQvC1wyJW1_UjAIOqIwGDsUU4p8geFMtZg"}}},"title":"test_my_prompt/scripts/test_my_prompt_custom_script.py at main Β· Extraltodeus/test_my_prompt"}
NameError: name 'false' is not defined

Skip X first words doesn't work

I would imagine this part is supposed to skip everything before the X separator. So if I use "," and 1, it should remove all words before ",".

lora:Collage:0.8lora:Print500:0.2, (front view:1), (photo of a Elephant in a Sunset:1.4), (cphed:1.3), (Lonely:1.4), Overcast weather, looking at viewer, (solo:1)

Fair to assume it would keep the LORAs in this example, if I set it like the above?

Fix typo

Copy the .py file in your /scripts folder or the folder of this repo in your extension folder.

β†’

Copy the .py file in your /scripts folder or the folder of this repo in your stable-diffusion-webui/scripts folder.

Only output text to grid image?

The current implementation renders the text prompts onto all output images then stitch them back into a single grid image, and that makes it impractical and impossible to get back the original output image that u like (especially if the seed is random) since the process is destructive. Even if u use "reuse seed from last generation", the output image is just a slight variation of the original and won't be the same (refer to screenshot to see the issue). And even with a fixed seed, u would then need to run the prompt again without the script, which is inefficient. Is there a way to make it so that it only outputs the text to the grid image, while keeping each individual output image untouched?

Example:
grid-0000

Say u like the picture with no sunset, but the script already renders the text onto that output image so u can't get it back without the text.

00464-2306368-big titties goth gf, dress, swimsuit, beach, sunset, cloudy weather, iso100, photograph

Here u can see that the output image is actually different from the original even if it's generated without sunset and with "reuse seed from last generation".
00468-2306368-big titties goth gf, dress, swimsuit, beach, cloudy weather, iso100, photograph

If there's a way to only output text to grid image, it will improve the prompt exploration process and art workflow without any downside since the grid image is what matters for comparison and sometimes there may be stuff that u like during generation.

Not the issue, but the idea

Hello, I don't know any other way to contact you, but I was searching for something to generate images as I type in prompts.
Example:

Extension that has setting to choose sampler and steps.

So when I type in prompts box, it renders images to approx 5 steps for each new word, just to give the idea/sketch of what it might be.

On faster GPUs even 20 steps is not a big deal, so if I were to write:

Castle (after space or comma) it would preview an image, after new word "on" it would now preview "Castle on", type in "hill", previews "Castle on hill".

I hope you get the idea, I just started using automatic1111 3 days ago, so the extension I would love to have right now, might feel useless when I learn to use it better.

Anyway I have no experience in coding, but would love to have an extension like that atm.

Thanks in advance :)

Only last processed image is shown on automatic's1111 GUI

I can only get one image instead of a grid or multiple images. changing settings doesn't change the behaviour.
The only image shown is the last one processed.
Exemple prompt: "landscape, beautiful, mountains, snow weather"
image

All the images are processed (progress visible in the cmd window):
image

I don't really know how the GUI works, but I can do tests if needs be. The script is unaltered. I'm using up to date automatic's GUI

Notification: we receive a request to add this extension to the sd-webui extension index

@Extraltodeus
Hi I'm the maintainer of the extension index for stable diffusion webui
we receive a request to add this extension index AUTOMATIC1111/stable-diffusion-webui-extensions#239
when possible we like to confirm with the author before listing an extension on the index
for detail see the PR AUTOMATIC1111/stable-diffusion-webui-extensions#241

we will be added this extension to the index if we don't receive a negative message from you within a week

ModuleNotFoundError: No module named 'fonts'

I wasn't able to get this one to run, unfortunately.

On startup, the following error is printed:

*** Error loading script: test_my_prompt_custom_script.py
    Traceback (most recent call last):
      File "C:\Users\arj\stable-diffusion-webui\modules\scripts.py", line 274, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "C:\Users\arj\stable-diffusion-webui\modules\script_loading.py", line 10, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "C:\Users\arj\stable-diffusion-webui\extensions\test_my_prompt\scripts\test_my_prompt_custom_script.py", line 4, in <module>
        from fonts.ttf import Roboto
    ModuleNotFoundError: No module named 'fonts'

A similar error appears when I try to install it in the scripts subfolder.

I'm not too familiar with stable-diffusion-webui internals, so I tried both adding fonts to requirements.txt, and doing a pip install fonts. Neither resolved it.

Any tips appreciated!

Environment: version: v1.4.0 β€€β€’β€€ python: 3.10.6 β€€β€’β€€ torch: 2.0.1+cu118 β€€β€’β€€ xformers: N/A β€€β€’β€€ gradio: 3.32.0 β€€β€’β€€ checkpoint: c52892e92a

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.