├── .gitignore ├── LICENSE ├── README.md ├── assets ├── avatars.yaml ├── default.b2d19cd6.jpg ├── default.jpg ├── index.0866feb1.css ├── index.6b33893a.js └── tags.yaml ├── images ├── 0-0.png ├── 0-1.JPG ├── 2-1.JPG ├── 2-2.JPG ├── 3-1.JPG ├── 3-2.JPG ├── 3-3.JPG ├── 3-4.JPG ├── 3-5.JPG ├── 3-6.JPG ├── 3-7.JPG ├── front.JPG ├── install.JPG └── logo.png ├── index.html ├── install.py ├── paste_this_to_webui_scripts_folder └── prompt_gallery.py ├── requirements.txt └── scripts └── prompt_gallery.py /.gitignore: -------------------------------------------------------------------------------- 1 | path_recorder.txt 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 | 6 | 7 | [![Forks][forks-shield]][forks-url] 8 | [![Stargazers][stars-shield]][stars-url] 9 | [![Issues][issues-shield]][issues-url] 10 | 11 |
12 | 14 | 15 | 16 | 17 | 18 |
19 |
20 | 21 | Logo 22 | 23 | 24 |

Prompt Gallery

25 |

26 | A prompt cookbook worked as stable-diffusion-webui extenstions. 27 |
28 | Watch Demo » 29 |
30 |
31 | Explore the docs 32 | · 33 | Report Bug 34 | · 35 | Request Feature 36 |

37 |
38 | 39 | 40 | 41 | 42 |
43 | Table of Contents 44 |
    45 |
  1. 46 | About The Project 47 | 50 |
  2. 51 |
  3. 52 | Getting Started 53 | 56 |
  4. 57 |
  5. 58 | Usage 59 | 67 |
  6. 68 |
  7. Contributing
  8. 69 |
  9. Contact
  10. 70 |
  11. Acknowledgments
  12. 71 |
72 |
73 | 74 | 75 | 76 | 77 | 78 |
79 | 80 |
81 | 82 | ## About The Project 83 | 84 | > Please star the repo if you likes it :> 85 | 86 | > 🐘 Good news: the extension now support webui dark theme. 87 | 88 | Prompt Gallery works as a prompt-set library extension of [stable-diffusion-webui](https://github.com/AUTOMATIC1111/stable-diffusion-webui). Stable-diffusion is an AI model which can generate illustration based on text-based prompts 89 | 90 | The extension combined with four features: 91 | 1. prompt-set library management 92 | 2. preview pictures management 93 | 3. select a combination of prompt-sets and generate illustration in webui 94 | 4. avatar/character system 95 | 96 | 97 |

(back to top)

98 | 99 | 100 | ## Getting Started 101 | 102 | 103 | ### Prerequisites & Installation 104 | 105 | 1. Install [stable-diffusion-webui](https://github.com/AUTOMATIC1111/stable-diffusion-webui) 106 | 107 | 2. Edit webui-user.bat (Win) or webui-user.sh (Linux) with these arguments "--api --listen --cors-allow-origins http://localhost:5173" 108 | 109 | >> ![install](./images/0-1.JPG) 110 | 111 | 112 | 3. Start webui 113 | 114 | 4. Install Prompt-gallery extension in Web-UI 115 | 116 | >> 4.1 Inout https://github.com/dr413677671/PromptGallery-stable-diffusion-webui.git in "URL for extension's git repository" 117 | 118 | >> 4.2 Input "Prompt Gallery" in Local directory name 119 | 120 | >> ![install](./images/install.JPG) 121 | 122 | 123 | Please refer to section Customized extension ip and port (optional) if you are using customized webui ip/port. 124 | 125 | 126 | ## Usage 127 | 128 | Restart webui. You should see a initial frontpage like this. 129 | 130 | ![preset](./images/0-0.png) 131 | 132 | There is no preview pictures. Prompt Gallery works like a framework. You need to create your own prompt-set library folloting by two steps: 133 | 1. edit your prompt-set dictionary 134 | 2. generate preview pictures for prompt-sets 135 | 136 | Please follow the instructions below to build your own prompt-set library: Alternatively you could watch the video tutorial: 137 | View Demo 138 | 139 | 140 | ### Build prompt-set library 141 | 142 | Definition of avatars.yaml: 143 | 144 | | value | negative | param | 145 | | :-----| ----: | :----: | 146 | | Positive prompts | Negative prompts | Other params for webui image generation | 147 | 148 | #### Build Avatar library 149 | 150 | > Avatars is the charater displayed on the top of the extension. Defined your own character by editing /extensions/your-prompt-gallery-extension-name/assets/avatars.yaml 151 | 152 | > The field "value" is the prompt-set for each characters. 153 | 154 | Teamplate: 155 | ```yaml 156 | whiteHair: 157 | value: "1 girl, blush, White hair, Red eyes, animal ears, looking at viewer, gothic lolita, dramatic angle, very beautiful, beautiful eyes, " 158 | negative: "" 159 | pinkGirl: 160 | value: "petite, 1girl, solo, pink hair, very long hair, school uniform, happy,outdoors, flower field, excited" 161 | ``` 162 | 163 | #### Build prompt-set library 164 | 165 | > Prompt-sets are prompts displayed as cart boxes below. 166 | 167 | > Customized your own prompt-set by editing /extensions/your-prompt-gallery-extension-name/assets/tags.yaml 168 | 169 | ```yaml 170 | category-tier-1: 171 | category-tier-1-1: 172 | "prompt-set-name-1": 173 | value: "prompt1, prompt2" 174 | negative: "neg-prompt1, neg-prompt2" 175 | "prompt-set-name-2" 176 | value: "prompt1" 177 | negative: "neg-prompt1" 178 | category-tier-1-2: 179 | "prompt-set-name-3": 180 | value: "prompts" 181 | ``` 182 | 183 | 184 | > The prompt-set are managed hierarchyly (e.g. the config below defined a tier 1 category "Figure" containes two tier two categories "Hair" and "Face") 185 | 186 | ```yaml 187 | Figure: 188 | Hair: 189 | "ponny-tail": 190 | value: "ponny-tail" 191 | negative: "lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, " 192 | "short_hair" 193 | value: "short_hair" 194 | negative: "long_hair,lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, " 195 | Face: 196 | "smile": 197 | value: "smile" 198 | 199 | Background: 200 | '': 201 | simple background: 202 | value: simple background 203 | sunburst background: 204 | value: sunburst background 205 | Nature: 206 | Space: 207 | value: "space background, space," 208 | Startrails: 209 | value: colorful startrails 210 | Woods: 211 | value: "Woods background, fantacy background," 212 | ``` 213 | 214 | > Additionally you could edit field "param" to customized AI model parameters (or switch models using the webui model selection tab.): 215 | 216 | ```yaml 217 | Style: 218 | General Effect: 219 | "General_ice_high_res": 220 | value: "flowing ice, portrait, focus on face, complex, extremely detailed , elegant, CG, (an extremely delicate and beautiful girl), incredibly absurdres, best quality,concept art" 221 | negative: "lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, " 222 | param: "Steps: 30, Sampler: Euler, CFG scale: 11.5, Seed: 1058629707, Size: 512x768, Variation seed: 1692844643, Variation seed strength: 0.27, Seed resize from: 1088x512" 223 | Background: 224 | '': 225 | simple background: 226 | value: simple background 227 | sunburst background: 228 | value: sunburst background 229 | Nature: 230 | Space: 231 | value: "space background, space," 232 | Startrails: 233 | value: colorful startrails 234 | ``` 235 | 236 | > Useful links for anime prompts: 237 | >> [sd-danbooru-tags](https://github.com/Vetchems/sd-danbooru-tags) or [DeepDanbooru](https://github.com/KichangKim/DeepDanbooru). 238 | 239 | 240 | ### Using Prompt Gallery 241 | 242 | 1. Slect tab "Prompt Gallery" on top navigation bar. You should see your dined prompt-sets in prompt-gallery. 243 | 244 | 2. Select the avatar (model for demo) 245 | 246 | 3. Select multiple prompt-sets 247 | 248 | 4. Click "send WebUI" 249 | 250 | ![2-1](./images/2-1.JPG) 251 | 252 | 5. In a few minutes, Images geneated with teh selected prompt-sets will be downloaded in your browser 253 | 254 | ![2-2](./images/2-2.JPG) 255 | 256 | 6. The preview picture is missing. To add preview picture for each prompt-set, please refer to the next section. 257 | 258 | ### Populate previews and QC 259 | 260 | 1. For newly installed exteantion, there will be no preview pictures for each prompt-set. 261 | 262 | ![3-1](./images/3-1.JPG) 263 | 264 | 2. Goto tab "txt2img" in webui and Select "Prompt Gallery" in "scripts" 265 | 266 | ![3-2](./images/3-2.JPG) 267 | 268 | 3. Upload the avatar yaml library mentioned in section "Build Avatar library". 269 | 270 | ![3-3](./images/3-3.JPG) 271 | 272 | 4. Add default prompts or default negative (optional), default prompts are additional prompts that applied for each prompt-set preview picture generation 273 | 274 | 5. Select "skip exists" if you wish to skip generating preview if preview picture exists for a prompt-set 275 | 276 | ![3-4](./images/3-4.JPG) 277 | 278 | 6. Wait for stable-diffusion-webui generate previews automatically. 279 | 280 | ![3-5](./images/3-5.JPG) 281 | 282 | 7. Pick the best image for preview picture of each prompt-set. 283 | 284 | ![3-6](./images/3-6.JPG) 285 | 286 | 8. Reflesh the browser. You should see the preview pictures in Prompt Gallery. 287 | 288 | ![3-7](./images/3-7.JPG) 289 | 290 | 9. The preview pictures are stored in prompt-gallery-directory/assets/preview/. You could always inspect the pictures manually. 291 | 292 |

(back to top)

293 | 294 | 295 | ### Cutomize default image generation parameters 296 | 297 | Sometimes you need to defined the default values for the AI model parameters. 298 | 299 | 1. Change the params at the top of webui-directory/extension/prompt-gallery-extension-name/paste_this_to_webui_scripts_folder/prompt_gallery.py 300 | 301 | 302 | ```python 303 | BATCH_SIZE = 4 304 | N_ITER = 2 305 | STEPS = 30 306 | CFG_SCALE = 11.5 307 | WIDTH = 512 308 | HEIGHT = 768 309 | SAMPLER_INDEX = 1 310 | RESTORE_FACE = 'true' 311 | TILING = 'false' 312 | DO_NOT_SAVE_GRID = 'false' 313 | ``` 314 | 315 | ### Customized extension ip and port (optional) 316 | 317 | If you are using customized ip for webui and the extension fail to automatically detected your customized ip. Please try: 318 | 319 | 1. Search %extension-path%\assets\index.*.js, change "127.0.0.1" to your customized webui ip 320 | 321 | 2. Search %extension-path%\scripts\prompt_gallery.py change 322 | 323 | ```python 324 | pg_ip = "%your_webui_ip%" if shared.cmd_opts.listen else 'localhost' 325 | pg_port = %your_webui_port%-- 326 | ``` 327 | 3. Change the ip address in webui-user.bat (Win) or webui-user.sh (Linux) 328 | 329 | 330 | ## Contributing 331 | 332 | Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**. 333 | 334 | 335 |

(back to top)

336 | 337 | ### Built With 338 | 339 | * [![Vue][Vue.js]][Vue-url] 340 | * [![JavaScript][JSP]][JSP-url] 341 | * Gradio 342 | * [![Pytorch][Pytorch]][Pytorch-url] 343 | * [![React][fastapi-img]][fastapi-url] 344 | 345 | 346 | ## Talk with me 347 | 348 | * dr413677671 - [@zhihu-Calcifer](https://www.zhihu.com/people/kumonoue) - 413677671@qq.com 349 | * Project Link: [https://github.com/dr413677671/PromptGallery-stable-diffusion-webui](https://github.com/dr413677671/PromptGallery-stable-diffusion-webui) 350 | 351 |

(back to top)

352 | 353 | 354 | ## Acknowledgments 355 | * [stable-diffusion-webui](https://github.com/AUTOMATIC1111/stable-diffusion-webui) 356 | * [novelai-tag](https://github.com/blacktunes/novelai-tag) 357 | * [Gradio](https://github.com/gradio-app/gradio) 358 | 359 |

(back to top)

360 | 361 | 362 | 363 | 364 | 365 | [contributors-shield]: https://img.shields.io/github/contributors/dr413677671/PromptGallery-stable-diffusion-webui.svg?style=for-the-badge 366 | [contributors-url]: https://github.com/dr413677671/PromptGallery-stable-diffusion-webui/graphs/contributors 367 | [forks-shield]: https://img.shields.io/github/forks/dr413677671/PromptGallery-stable-diffusion-webui.svg?style=for-the-badge 368 | [forks-url]: https://github.com/dr413677671/PromptGallery-stable-diffusion-webui/network/members 369 | [stars-shield]: https://img.shields.io/github/stars/dr413677671/PromptGallery-stable-diffusion-webui.svg?style=for-the-badge 370 | [stars-url]: https://github.com/dr413677671/PromptGallery-stable-diffusion-webui/stargazers 371 | [issues-shield]: https://img.shields.io/github/issues/dr413677671/PromptGallery-stable-diffusion-webui.svg?style=for-the-badge 372 | [issues-url]: https://github.com/dr413677671/PromptGallery-stable-diffusion-webui/issues 373 | 374 | [product-screenshot]: images/screenshot.png 375 | [Vue.js]: https://img.shields.io/badge/Vue.js-35495E?style=for-the-badge&logo=vuedotjs&logoColor=4FC08D 376 | [Vue-url]: https://vuejs.org/ 377 | [JSP]: https://img.shields.io/badge/JavaScript-323330?style=for-the-badge&logo=javascript&logoColor=F7DF1E 378 | [JSP-url]: https://github.com/TheAlgorithms/JavaScript 379 | [python-img]: https://img.shields.io/badge/Python-FFD43B?style=for-the-badge&logo=python&logoColor=blue 380 | [python-url]: https://www.python.org/ 381 | [fastapi-img]: https://img.shields.io/badge/fastapi-109989?style=for-the-badge&logo=FASTAPI&logoColor=white 382 | [fastapi-url]: https://fastapi.tiangolo.com/ 383 | [Pytorch]: https://img.shields.io/badge/PyTorch-EE4C2C?style=for-the-badge&logo=PyTorch&logoColor=white 384 | [Pytorch-url]: https://github.com/pytorch/pytorch 385 | -------------------------------------------------------------------------------- /assets/avatars.yaml: -------------------------------------------------------------------------------- 1 | whiteHair: 2 | value: "1 girl, blush, White hair, Red eyes, animal ears, looking at viewer, gothic lolita, dramatic angle, very beautiful, beautiful eyes, " 3 | negative: "" 4 | pinkGirl: 5 | value: "petite, 1girl, solo, pink hair, very long hair, school uniform, happy,outdoors, flower field, excited" -------------------------------------------------------------------------------- /assets/default.b2d19cd6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dr413677671/PromptGallery-stable-diffusion-webui/5e28ec34dabc625b38e7a967471f9d4dbda133ec/assets/default.b2d19cd6.jpg -------------------------------------------------------------------------------- /assets/default.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dr413677671/PromptGallery-stable-diffusion-webui/5e28ec34dabc625b38e7a967471f9d4dbda133ec/assets/default.jpg -------------------------------------------------------------------------------- /assets/index.0866feb1.css: -------------------------------------------------------------------------------- 1 | @charset "UTF-8";body{margin:0}#app{display:flex;flex-direction:column;min-height:100vh}::-webkit-scrollbar{width:7px;height:0px}::-webkit-scrollbar-track{box-shadow:inset 0 0 6px #0000004d;background-color:#eee}::-webkit-scrollbar-thumb{box-shadow:inset 0 0 6px #0000001a;background-color:#aaa}::-webkit-scrollbar-thumb:active{background-color:#ccc}:root{--el-color-white:#ffffff;--el-color-black:#000000;--el-color-primary-rgb:64,158,255;--el-color-success-rgb:103,194,58;--el-color-warning-rgb:230,162,60;--el-color-danger-rgb:245,108,108;--el-color-error-rgb:245,108,108;--el-color-info-rgb:144,147,153;--el-font-size-extra-large:20px;--el-font-size-large:18px;--el-font-size-medium:16px;--el-font-size-base:14px;--el-font-size-small:13px;--el-font-size-extra-small:12px;--el-font-family:"Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","\5fae\8f6f\96c5\9ed1",Arial,sans-serif;--el-font-weight-primary:500;--el-font-line-height-primary:24px;--el-index-normal:1;--el-index-top:1000;--el-index-popper:2000;--el-border-radius-base:4px;--el-border-radius-small:2px;--el-border-radius-round:20px;--el-border-radius-circle:100%;--el-transition-duration:.3s;--el-transition-duration-fast:.2s;--el-transition-function-ease-in-out-bezier:cubic-bezier(.645, .045, .355, 1);--el-transition-function-fast-bezier:cubic-bezier(.23, 1, .32, 1);--el-transition-all:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);--el-transition-fade:opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-md-fade:transform var(--el-transition-duration) var(--el-transition-function-fast-bezier),opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-fade-linear:opacity var(--el-transition-duration-fast) linear;--el-transition-border:border-color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-box-shadow:box-shadow var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-color:color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-component-size-large:40px;--el-component-size:32px;--el-component-size-small:24px}:root{color-scheme:light;--el-color-white:#ffffff;--el-color-black:#000000;--el-color-primary:#409eff;--el-color-primary-light-3:#79bbff;--el-color-primary-light-5:#a0cfff;--el-color-primary-light-7:#c6e2ff;--el-color-primary-light-8:#d9ecff;--el-color-primary-light-9:#ecf5ff;--el-color-primary-dark-2:#337ecc;--el-color-success:#67c23a;--el-color-success-light-3:#95d475;--el-color-success-light-5:#b3e19d;--el-color-success-light-7:#d1edc4;--el-color-success-light-8:#e1f3d8;--el-color-success-light-9:#f0f9eb;--el-color-success-dark-2:#529b2e;--el-color-warning:#e6a23c;--el-color-warning-light-3:#eebe77;--el-color-warning-light-5:#f3d19e;--el-color-warning-light-7:#f8e3c5;--el-color-warning-light-8:#faecd8;--el-color-warning-light-9:#fdf6ec;--el-color-warning-dark-2:#b88230;--el-color-danger:#f56c6c;--el-color-danger-light-3:#f89898;--el-color-danger-light-5:#fab6b6;--el-color-danger-light-7:#fcd3d3;--el-color-danger-light-8:#fde2e2;--el-color-danger-light-9:#fef0f0;--el-color-danger-dark-2:#c45656;--el-color-error:#f56c6c;--el-color-error-light-3:#f89898;--el-color-error-light-5:#fab6b6;--el-color-error-light-7:#fcd3d3;--el-color-error-light-8:#fde2e2;--el-color-error-light-9:#fef0f0;--el-color-error-dark-2:#c45656;--el-color-info:#909399;--el-color-info-light-3:#b1b3b8;--el-color-info-light-5:#c8c9cc;--el-color-info-light-7:#dedfe0;--el-color-info-light-8:#e9e9eb;--el-color-info-light-9:#f4f4f5;--el-color-info-dark-2:#73767a;--el-bg-color:#ffffff;--el-bg-color-page:#f2f3f5;--el-bg-color-overlay:#ffffff;--el-text-color-primary:#303133;--el-text-color-regular:#606266;--el-text-color-secondary:#909399;--el-text-color-placeholder:#a8abb2;--el-text-color-disabled:#c0c4cc;--el-border-color:#dcdfe6;--el-border-color-light:#e4e7ed;--el-border-color-lighter:#ebeef5;--el-border-color-extra-light:#f2f6fc;--el-border-color-dark:#d4d7de;--el-border-color-darker:#cdd0d6;--el-fill-color:#f0f2f5;--el-fill-color-light:#f5f7fa;--el-fill-color-lighter:#fafafa;--el-fill-color-extra-light:#fafcff;--el-fill-color-dark:#ebedf0;--el-fill-color-darker:#e6e8eb;--el-fill-color-blank:#ffffff;--el-box-shadow:0px 12px 32px 4px rgba(0, 0, 0, .04),0px 8px 20px rgba(0, 0, 0, .08);--el-box-shadow-light:0px 0px 12px rgba(0, 0, 0, .12);--el-box-shadow-lighter:0px 0px 6px rgba(0, 0, 0, .12);--el-box-shadow-dark:0px 16px 48px 16px rgba(0, 0, 0, .08),0px 12px 32px rgba(0, 0, 0, .12),0px 8px 16px -8px rgba(0, 0, 0, .16);--el-disabled-bg-color:var(--el-fill-color-light);--el-disabled-text-color:var(--el-text-color-placeholder);--el-disabled-border-color:var(--el-border-color-light);--el-overlay-color:rgba(0, 0, 0, .8);--el-overlay-color-light:rgba(0, 0, 0, .7);--el-overlay-color-lighter:rgba(0, 0, 0, .5);--el-mask-color:rgba(255, 255, 255, .9);--el-mask-color-extra-light:rgba(255, 255, 255, .3);--el-border-width:1px;--el-border-style:solid;--el-border-color-hover:var(--el-text-color-disabled);--el-border:var(--el-border-width) var(--el-border-style) var(--el-border-color);--el-svg-monochrome-grey:var(--el-border-color)}.fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.fade-in-linear-enter-from,.fade-in-linear-leave-to{opacity:0}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.el-fade-in-linear-enter-from,.el-fade-in-linear-leave-to{opacity:0}.el-fade-in-enter-active,.el-fade-in-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-fade-in-enter-from,.el-fade-in-leave-active{opacity:0}.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter-from,.el-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transition:var(--el-transition-md-fade);transform-origin:center top}.el-zoom-in-top-enter-active[data-popper-placement^=top],.el-zoom-in-top-leave-active[data-popper-placement^=top]{transform-origin:center bottom}.el-zoom-in-top-enter-from,.el-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;transform:scaleY(1);transition:var(--el-transition-md-fade);transform-origin:center bottom}.el-zoom-in-bottom-enter-from,.el-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;transform:scale(1);transition:var(--el-transition-md-fade);transform-origin:top left}.el-zoom-in-left-enter-from,.el-zoom-in-left-leave-active{opacity:0;transform:scale(.45)}.collapse-transition{transition:var(--el-transition-duration) height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.el-collapse-transition-enter-active,.el-collapse-transition-leave-active{transition:var(--el-transition-duration) max-height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.horizontal-collapse-transition{transition:var(--el-transition-duration) width ease-in-out,var(--el-transition-duration) padding-left ease-in-out,var(--el-transition-duration) padding-right ease-in-out}.el-list-enter-active,.el-list-leave-active{transition:all 1s}.el-list-enter-from,.el-list-leave-to{opacity:0;transform:translateY(-30px)}.el-list-leave-active{position:absolute!important}.el-opacity-transition{transition:opacity var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-tag{--el-tag-font-size:12px;--el-tag-border-radius:4px;--el-tag-border-radius-rounded:9999px}.el-tag{--el-tag-bg-color:var(--el-color-primary-light-9);--el-tag-border-color:var(--el-color-primary-light-8);--el-tag-hover-color:var(--el-color-primary);--el-tag-text-color:var(--el-color-primary);background-color:var(--el-tag-bg-color);border-color:var(--el-tag-border-color);color:var(--el-tag-text-color);display:inline-flex;justify-content:center;align-items:center;height:24px;padding:0 9px;font-size:var(--el-tag-font-size);line-height:1;border-width:1px;border-style:solid;border-radius:var(--el-tag-border-radius);box-sizing:border-box;white-space:nowrap;--el-icon-size:14px}.el-tag.el-tag--primary{--el-tag-bg-color:var(--el-color-primary-light-9);--el-tag-border-color:var(--el-color-primary-light-8);--el-tag-hover-color:var(--el-color-primary)}.el-tag.el-tag--success{--el-tag-bg-color:var(--el-color-success-light-9);--el-tag-border-color:var(--el-color-success-light-8);--el-tag-hover-color:var(--el-color-success)}.el-tag.el-tag--warning{--el-tag-bg-color:var(--el-color-warning-light-9);--el-tag-border-color:var(--el-color-warning-light-8);--el-tag-hover-color:var(--el-color-warning)}.el-tag.el-tag--danger{--el-tag-bg-color:var(--el-color-danger-light-9);--el-tag-border-color:var(--el-color-danger-light-8);--el-tag-hover-color:var(--el-color-danger)}.el-tag.el-tag--error{--el-tag-bg-color:var(--el-color-error-light-9);--el-tag-border-color:var(--el-color-error-light-8);--el-tag-hover-color:var(--el-color-error)}.el-tag.el-tag--info{--el-tag-bg-color:var(--el-color-info-light-9);--el-tag-border-color:var(--el-color-info-light-8);--el-tag-hover-color:var(--el-color-info)}.el-tag.el-tag--primary{--el-tag-text-color:var(--el-color-primary)}.el-tag.el-tag--success{--el-tag-text-color:var(--el-color-success)}.el-tag.el-tag--warning{--el-tag-text-color:var(--el-color-warning)}.el-tag.el-tag--danger{--el-tag-text-color:var(--el-color-danger)}.el-tag.el-tag--error{--el-tag-text-color:var(--el-color-error)}.el-tag.el-tag--info{--el-tag-text-color:var(--el-color-info)}.el-tag.is-hit{border-color:var(--el-color-primary)}.el-tag.is-round{border-radius:var(--el-tag-border-radius-rounded)}.el-tag .el-tag__close{color:var(--el-tag-text-color)}.el-tag .el-tag__close:hover{color:var(--el-color-white);background-color:var(--el-tag-hover-color)}.el-tag .el-icon{border-radius:50%;cursor:pointer;font-size:calc(var(--el-icon-size) - 2px);height:var(--el-icon-size);width:var(--el-icon-size)}.el-tag .el-tag__close{margin-left:6px}.el-tag--dark{--el-tag-bg-color:var(--el-color-primary);--el-tag-border-color:var(--el-color-primary);--el-tag-hover-color:var(--el-color-primary-light-3);--el-tag-text-color:var(--el-color-white)}.el-tag--dark.el-tag--primary{--el-tag-bg-color:var(--el-color-primary);--el-tag-border-color:var(--el-color-primary);--el-tag-hover-color:var(--el-color-primary-light-3)}.el-tag--dark.el-tag--success{--el-tag-bg-color:var(--el-color-success);--el-tag-border-color:var(--el-color-success);--el-tag-hover-color:var(--el-color-success-light-3)}.el-tag--dark.el-tag--warning{--el-tag-bg-color:var(--el-color-warning);--el-tag-border-color:var(--el-color-warning);--el-tag-hover-color:var(--el-color-warning-light-3)}.el-tag--dark.el-tag--danger{--el-tag-bg-color:var(--el-color-danger);--el-tag-border-color:var(--el-color-danger);--el-tag-hover-color:var(--el-color-danger-light-3)}.el-tag--dark.el-tag--error{--el-tag-bg-color:var(--el-color-error);--el-tag-border-color:var(--el-color-error);--el-tag-hover-color:var(--el-color-error-light-3)}.el-tag--dark.el-tag--info{--el-tag-bg-color:var(--el-color-info);--el-tag-border-color:var(--el-color-info);--el-tag-hover-color:var(--el-color-info-light-3)}.el-tag--dark.el-tag--primary,.el-tag--dark.el-tag--success,.el-tag--dark.el-tag--warning,.el-tag--dark.el-tag--danger,.el-tag--dark.el-tag--error,.el-tag--dark.el-tag--info{--el-tag-text-color:var(--el-color-white)}.el-tag--plain{--el-tag-border-color:var(--el-color-primary-light-5);--el-tag-hover-color:var(--el-color-primary);--el-tag-bg-color:var(--el-fill-color-blank)}.el-tag--plain.el-tag--primary{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-primary-light-5);--el-tag-hover-color:var(--el-color-primary)}.el-tag--plain.el-tag--success{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-success-light-5);--el-tag-hover-color:var(--el-color-success)}.el-tag--plain.el-tag--warning{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-warning-light-5);--el-tag-hover-color:var(--el-color-warning)}.el-tag--plain.el-tag--danger{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-danger-light-5);--el-tag-hover-color:var(--el-color-danger)}.el-tag--plain.el-tag--error{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-error-light-5);--el-tag-hover-color:var(--el-color-error)}.el-tag--plain.el-tag--info{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-info-light-5);--el-tag-hover-color:var(--el-color-info)}.el-tag.is-closable{padding-right:5px}.el-tag--large{padding:0 11px;height:32px;--el-icon-size:16px}.el-tag--large .el-tag__close{margin-left:8px}.el-tag--large.is-closable{padding-right:7px}.el-tag--small{padding:0 7px;height:20px;--el-icon-size:12px}.el-tag--small .el-tag__close{margin-left:4px}.el-tag--small.is-closable{padding-right:3px}.el-tag--small .el-icon-close{transform:scale(.8)}.el-tag.el-tag--primary.is-hit{border-color:var(--el-color-primary)}.el-tag.el-tag--success.is-hit{border-color:var(--el-color-success)}.el-tag.el-tag--warning.is-hit{border-color:var(--el-color-warning)}.el-tag.el-tag--danger.is-hit{border-color:var(--el-color-danger)}.el-tag.el-tag--error.is-hit{border-color:var(--el-color-error)}.el-tag.el-tag--info.is-hit{border-color:var(--el-color-info)}.body[data-v-0ac3bfe7]{background-color:var(--theme_bg_color);color:var(--theme_text_color)}.readme[data-v-0ac3bfe7]{margin:5px;background-color:var(--theme_bg_color);color:var(--theme_text_color)}.title[data-v-0ac3bfe7]{text-align:center;margin:10px;font-size:16px;font-weight:700;width:100%;background-color:var(--theme_bg_color);color:var(--theme_text_color)}.text[data-v-0ac3bfe7]{font-size:12px;color:#999;text-align:center}.el-textarea{--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary)}.el-textarea{position:relative;display:inline-block;width:100%;vertical-align:bottom;font-size:var(--el-font-size-base)}.el-textarea__inner{position:relative;display:block;resize:vertical;padding:5px 11px;line-height:1.5;box-sizing:border-box;width:100%;font-size:inherit;font-family:inherit;color:var(--el-input-text-color,var(--el-text-color-regular));background-color:var(--el-input-bg-color,var(--el-fill-color-blank));background-image:none;-webkit-appearance:none;box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset;border-radius:var(--el-input-border-radius,var(--el-border-radius-base));transition:var(--el-transition-box-shadow);border:none}.el-textarea__inner::-moz-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner:-ms-input-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner::placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-textarea__inner:focus{outline:0;box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-textarea .el-input__count{color:var(--el-color-info);background:var(--el-fill-color-blank);position:absolute;font-size:12px;line-height:14px;bottom:5px;right:10px}.el-textarea.is-disabled .el-textarea__inner{background-color:var(--el-disabled-bg-color);border-color:var(--el-disabled-border-color);color:var(--el-disabled-text-color);cursor:not-allowed}.el-textarea.is-disabled .el-textarea__inner::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-disabled .el-textarea__inner:-ms-input-placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-disabled .el-textarea__inner::placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-exceed .el-textarea__inner{border-color:var(--el-color-danger)}.el-textarea.is-exceed .el-input__count{color:var(--el-color-danger)}.el-input{--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary)}.el-input{--el-input-height:var(--el-component-size);position:relative;font-size:var(--el-font-size-base);display:inline-flex;width:100%;line-height:var(--el-input-height);box-sizing:border-box;vertical-align:middle}.el-input::-webkit-scrollbar{z-index:11;width:6px}.el-input::-webkit-scrollbar:horizontal{height:6px}.el-input::-webkit-scrollbar-thumb{border-radius:5px;width:6px;background:var(--el-text-color-disabled)}.el-input::-webkit-scrollbar-corner{background:var(--el-fill-color-blank)}.el-input::-webkit-scrollbar-track{background:var(--el-fill-color-blank)}.el-input::-webkit-scrollbar-track-piece{background:var(--el-fill-color-blank);width:6px}.el-input .el-input__clear,.el-input .el-input__password{color:var(--el-input-icon-color);font-size:14px;cursor:pointer}.el-input .el-input__clear:hover,.el-input .el-input__password:hover{color:var(--el-input-clear-hover-color)}.el-input .el-input__count{height:100%;display:inline-flex;align-items:center;color:var(--el-color-info);font-size:12px}.el-input .el-input__count .el-input__count-inner{background:var(--el-fill-color-blank);line-height:initial;display:inline-block;padding-left:8px}.el-input__wrapper{display:inline-flex;flex-grow:1;align-items:center;justify-content:center;padding:1px 11px;background-color:var(--el-input-bg-color,var(--el-fill-color-blank));background-image:none;border-radius:var(--el-input-border-radius,var(--el-border-radius-base));transition:var(--el-transition-box-shadow);box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset}.el-input__wrapper:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-input__inner{--el-input-inner-height:calc(var(--el-input-height, 32px) - 2px);width:100%;flex-grow:1;-webkit-appearance:none;color:var(--el-input-text-color,var(--el-text-color-regular));font-size:inherit;height:var(--el-input-inner-height);line-height:var(--el-input-inner-height);padding:0;outline:0;border:none;background:0 0;box-sizing:border-box}.el-input__inner:focus{outline:0}.el-input__inner::-moz-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner:-ms-input-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner::placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner[type=password]::-ms-reveal{display:none}.el-input__prefix{display:inline-flex;white-space:nowrap;flex-shrink:0;flex-wrap:nowrap;height:100%;text-align:center;color:var(--el-input-icon-color,var(--el-text-color-placeholder));transition:all var(--el-transition-duration);pointer-events:none}.el-input__prefix-inner{pointer-events:all;display:inline-flex;align-items:center;justify-content:center}.el-input__prefix-inner>:last-child{margin-right:8px}.el-input__prefix-inner>:first-child,.el-input__prefix-inner>:first-child.el-input__icon{margin-left:0}.el-input__suffix{display:inline-flex;white-space:nowrap;flex-shrink:0;flex-wrap:nowrap;height:100%;text-align:center;color:var(--el-input-icon-color,var(--el-text-color-placeholder));transition:all var(--el-transition-duration);pointer-events:none}.el-input__suffix-inner{pointer-events:all;display:inline-flex;align-items:center;justify-content:center}.el-input__suffix-inner>:first-child{margin-left:8px}.el-input .el-input__icon{height:inherit;line-height:inherit;display:flex;justify-content:center;align-items:center;transition:all var(--el-transition-duration);margin-left:8px}.el-input__validateIcon{pointer-events:none}.el-input.is-active .el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-focus-color,) inset}.el-input.is-disabled{cursor:not-allowed}.el-input.is-disabled .el-input__wrapper{background-color:var(--el-disabled-bg-color);box-shadow:0 0 0 1px var(--el-disabled-border-color) inset}.el-input.is-disabled .el-input__inner{color:var(--el-disabled-text-color);-webkit-text-fill-color:var(--el-disabled-text-color);cursor:not-allowed}.el-input.is-disabled .el-input__inner::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__inner:-ms-input-placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__inner::placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__icon{cursor:not-allowed}.el-input.is-exceed .el-input__wrapper{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-input.is-exceed .el-input__suffix .el-input__count{color:var(--el-color-danger)}.el-input--large{--el-input-height:var(--el-component-size-large);font-size:14px}.el-input--large .el-input__wrapper{padding:1px 15px}.el-input--large .el-input__inner{--el-input-inner-height:calc(var(--el-input-height, 40px) - 2px)}.el-input--small{--el-input-height:var(--el-component-size-small);font-size:12px}.el-input--small .el-input__wrapper{padding:1px 7px}.el-input--small .el-input__inner{--el-input-inner-height:calc(var(--el-input-height, 24px) - 2px)}.el-input-group{display:inline-flex;width:100%;align-items:stretch}.el-input-group__append,.el-input-group__prepend{background-color:var(--el-fill-color-light);color:var(--el-color-info);position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:100%;border-radius:var(--el-input-border-radius);padding:0 20px;white-space:nowrap}.el-input-group__append:focus,.el-input-group__prepend:focus{outline:0}.el-input-group__append .el-button,.el-input-group__append .el-select,.el-input-group__prepend .el-button,.el-input-group__prepend .el-select{display:inline-block;margin:0 -20px}.el-input-group__append button.el-button,.el-input-group__append button.el-button:hover,.el-input-group__append div.el-select .el-input__wrapper,.el-input-group__append div.el-select:hover .el-input__wrapper,.el-input-group__prepend button.el-button,.el-input-group__prepend button.el-button:hover,.el-input-group__prepend div.el-select .el-input__wrapper,.el-input-group__prepend div.el-select:hover .el-input__wrapper{border-color:transparent;background-color:transparent;color:inherit}.el-input-group__append .el-button,.el-input-group__append .el-input,.el-input-group__prepend .el-button,.el-input-group__prepend .el-input{font-size:inherit}.el-input-group__prepend{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0;box-shadow:1px 0 0 0 var(--el-input-border-color) inset,0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset}.el-input-group__append{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0;box-shadow:0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset,-1px 0 0 0 var(--el-input-border-color) inset}.el-input-group--prepend>.el-input__wrapper{border-top-left-radius:0;border-bottom-left-radius:0}.el-input-group--prepend .el-input-group__prepend .el-select .el-input .el-input__inner{box-shadow:none!important}.el-input-group--prepend .el-input-group__prepend .el-select .el-input .el-input__wrapper{border-top-right-radius:0;border-bottom-right-radius:0;box-shadow:1px 0 0 0 var(--el-input-border-color) inset,0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset}.el-input-group--prepend .el-input-group__prepend .el-select .el-input.is-focus .el-input__inner{box-shadow:none!important}.el-input-group--prepend .el-input-group__prepend .el-select .el-input.is-focus .el-input__wrapper{box-shadow:1px 0 0 0 var(--el-input-focus-border-color) inset,1px 0 0 0 var(--el-input-focus-border-color),0 1px 0 0 var(--el-input-focus-border-color) inset,0 -1px 0 0 var(--el-input-focus-border-color) inset!important;z-index:2}.el-input-group--prepend .el-input-group__prepend .el-select .el-input.is-focus .el-input__wrapper:focus{outline:0;z-index:2;box-shadow:1px 0 0 0 var(--el-input-focus-border-color) inset,1px 0 0 0 var(--el-input-focus-border-color),0 1px 0 0 var(--el-input-focus-border-color) inset,0 -1px 0 0 var(--el-input-focus-border-color) inset!important}.el-input-group--prepend .el-input-group__prepend .el-select:hover .el-input__inner{box-shadow:none!important}.el-input-group--prepend .el-input-group__prepend .el-select:hover .el-input__wrapper{z-index:1;box-shadow:1px 0 0 0 var(--el-input-hover-border-color) inset,1px 0 0 0 var(--el-input-hover-border-color),0 1px 0 0 var(--el-input-hover-border-color) inset,0 -1px 0 0 var(--el-input-hover-border-color) inset!important}.el-input-group--append>.el-input__wrapper{border-top-right-radius:0;border-bottom-right-radius:0}.el-input-group--append .el-input-group__append .el-select .el-input .el-input__inner{box-shadow:none!important}.el-input-group--append .el-input-group__append .el-select .el-input .el-input__wrapper{border-top-left-radius:0;border-bottom-left-radius:0;box-shadow:0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset,-1px 0 0 0 var(--el-input-border-color) inset}.el-input-group--append .el-input-group__append .el-select .el-input.is-focus .el-input__inner{box-shadow:none!important}.el-input-group--append .el-input-group__append .el-select .el-input.is-focus .el-input__wrapper{z-index:2;box-shadow:-1px 0 0 0 var(--el-input-focus-border-color),-1px 0 0 0 var(--el-input-focus-border-color) inset,0 1px 0 0 var(--el-input-focus-border-color) inset,0 -1px 0 0 var(--el-input-focus-border-color) inset!important}.el-input-group--append .el-input-group__append .el-select:hover .el-input__inner{box-shadow:none!important}.el-input-group--append .el-input-group__append .el-select:hover .el-input__wrapper{z-index:1;box-shadow:-1px 0 0 0 var(--el-input-hover-border-color),-1px 0 0 0 var(--el-input-hover-border-color) inset,0 1px 0 0 var(--el-input-hover-border-color) inset,0 -1px 0 0 var(--el-input-hover-border-color) inset!important}.input[data-v-54849109]{margin:5px;width:calc(100% - 10px)}.el-tabs{--el-tabs-header-height:40px}.el-tabs__header{padding:0;position:relative;margin:0 0 15px}.el-tabs__active-bar{position:absolute;bottom:0;left:0;height:2px;background-color:var(--el-color-primary);z-index:1;transition:width var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier),transform var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);list-style:none}.el-tabs__new-tab{display:flex;align-items:center;justify-content:center;float:right;border:1px solid var(--el-border-color);height:20px;width:20px;line-height:20px;margin:10px 0 10px 10px;border-radius:3px;text-align:center;font-size:12px;color:var(--el-text-color-primary);cursor:pointer;transition:all .15s}.el-tabs__new-tab .is-icon-plus{height:inherit;width:inherit;transform:scale(.8)}.el-tabs__new-tab .is-icon-plus svg{vertical-align:middle}.el-tabs__new-tab:hover{color:var(--el-color-primary)}.el-tabs__nav-wrap{overflow:hidden;margin-bottom:-1px;position:relative}.el-tabs__nav-wrap:after{content:"";position:absolute;left:0;bottom:0;width:100%;height:2px;background-color:var(--el-border-color-light);z-index:var(--el-index-normal)}.el-tabs__nav-wrap.is-scrollable{padding:0 20px;box-sizing:border-box}.el-tabs__nav-scroll{overflow:hidden}.el-tabs__nav-next,.el-tabs__nav-prev{position:absolute;cursor:pointer;line-height:44px;font-size:12px;color:var(--el-text-color-secondary);width:20px;text-align:center}.el-tabs__nav-next{right:0}.el-tabs__nav-prev{left:0}.el-tabs__nav{white-space:nowrap;position:relative;transition:transform var(--el-transition-duration);float:left;z-index:calc(var(--el-index-normal) + 1)}.el-tabs__nav.is-stretch{min-width:100%;display:flex}.el-tabs__nav.is-stretch>*{flex:1;text-align:center}.el-tabs__item{padding:0 20px;height:var(--el-tabs-header-height);box-sizing:border-box;line-height:var(--el-tabs-header-height);display:inline-block;list-style:none;font-size:var(--el-font-size-base);font-weight:500;color:var(--el-text-color-primary);position:relative}.el-tabs__item:focus,.el-tabs__item:focus:active{outline:0}.el-tabs__item:focus-visible{box-shadow:0 0 2px 2px var(--el-color-primary) inset;border-radius:3px}.el-tabs__item .is-icon-close{border-radius:50%;text-align:center;transition:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);margin-left:5px}.el-tabs__item .is-icon-close:before{transform:scale(.9);display:inline-block}.el-tabs__item .is-icon-close:hover{background-color:var(--el-text-color-placeholder);color:#fff}.el-tabs__item .is-icon-close svg{margin-top:1px}.el-tabs__item.is-active{color:var(--el-color-primary)}.el-tabs__item:hover{color:var(--el-color-primary);cursor:pointer}.el-tabs__item.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-tabs__content{overflow:hidden;position:relative}.el-tabs--card>.el-tabs__header{border-bottom:1px solid var(--el-border-color-light);height:var(--el-tabs-header-height)}.el-tabs--card>.el-tabs__header .el-tabs__nav-wrap:after{content:none}.el-tabs--card>.el-tabs__header .el-tabs__nav{border:1px solid var(--el-border-color-light);border-bottom:none;border-radius:4px 4px 0 0;box-sizing:border-box}.el-tabs--card>.el-tabs__header .el-tabs__active-bar{display:none}.el-tabs--card>.el-tabs__header .el-tabs__item .is-icon-close{position:relative;font-size:12px;width:0;height:14px;vertical-align:middle;line-height:15px;overflow:hidden;top:-1px;right:-2px;transform-origin:100% 50%}.el-tabs--card>.el-tabs__header .el-tabs__item{border-bottom:1px solid transparent;border-left:1px solid var(--el-border-color-light);transition:color var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier),padding var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier)}.el-tabs--card>.el-tabs__header .el-tabs__item:first-child{border-left:none}.el-tabs--card>.el-tabs__header .el-tabs__item.is-closable:hover{padding-left:13px;padding-right:13px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-closable:hover .is-icon-close{width:14px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active{border-bottom-color:var(--el-bg-color)}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active.is-closable{padding-left:20px;padding-right:20px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active.is-closable .is-icon-close{width:14px}.el-tabs--border-card{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color)}.el-tabs--border-card>.el-tabs__content{padding:15px}.el-tabs--border-card>.el-tabs__header{background-color:var(--el-fill-color-light);border-bottom:1px solid var(--el-border-color-light);margin:0}.el-tabs--border-card>.el-tabs__header .el-tabs__nav-wrap:after{content:none}.el-tabs--border-card>.el-tabs__header .el-tabs__item{transition:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);border:1px solid transparent;margin-top:-1px;color:var(--el-text-color-secondary)}.el-tabs--border-card>.el-tabs__header .el-tabs__item:first-child{margin-left:-1px}.el-tabs--border-card>.el-tabs__header .el-tabs__item+.el-tabs__item{margin-left:-1px}.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active{color:var(--el-color-primary);background-color:var(--el-bg-color-overlay);border-right-color:var(--el-border-color);border-left-color:var(--el-border-color)}.el-tabs--border-card>.el-tabs__header .el-tabs__item:not(.is-disabled):hover{color:var(--el-color-primary)}.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-disabled{color:var(--el-disabled-text-color)}.el-tabs--border-card>.el-tabs__header .is-scrollable .el-tabs__item:first-child{margin-left:0}.el-tabs--bottom .el-tabs__item.is-bottom:nth-child(2),.el-tabs--bottom .el-tabs__item.is-top:nth-child(2),.el-tabs--top .el-tabs__item.is-bottom:nth-child(2),.el-tabs--top .el-tabs__item.is-top:nth-child(2){padding-left:0}.el-tabs--bottom .el-tabs__item.is-bottom:last-child,.el-tabs--bottom .el-tabs__item.is-top:last-child,.el-tabs--top .el-tabs__item.is-bottom:last-child,.el-tabs--top .el-tabs__item.is-top:last-child{padding-right:0}.el-tabs--bottom .el-tabs--left>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom .el-tabs--right>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top .el-tabs--left>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top .el-tabs--right>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2){padding-left:20px}.el-tabs--bottom .el-tabs--left>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom .el-tabs--right>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top .el-tabs--left>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top .el-tabs--right>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:last-child{padding-right:20px}.el-tabs--bottom .el-tabs__header.is-bottom{margin-bottom:0;margin-top:10px}.el-tabs--bottom.el-tabs--border-card .el-tabs__header.is-bottom{border-bottom:0;border-top:1px solid var(--el-border-color)}.el-tabs--bottom.el-tabs--border-card .el-tabs__nav-wrap.is-bottom{margin-top:-1px;margin-bottom:0}.el-tabs--bottom.el-tabs--border-card .el-tabs__item.is-bottom:not(.is-active){border:1px solid transparent}.el-tabs--bottom.el-tabs--border-card .el-tabs__item.is-bottom{margin:0 -1px -1px}.el-tabs--left,.el-tabs--right{overflow:hidden}.el-tabs--left .el-tabs__header.is-left,.el-tabs--left .el-tabs__header.is-right,.el-tabs--left .el-tabs__nav-scroll,.el-tabs--left .el-tabs__nav-wrap.is-left,.el-tabs--left .el-tabs__nav-wrap.is-right,.el-tabs--right .el-tabs__header.is-left,.el-tabs--right .el-tabs__header.is-right,.el-tabs--right .el-tabs__nav-scroll,.el-tabs--right .el-tabs__nav-wrap.is-left,.el-tabs--right .el-tabs__nav-wrap.is-right{height:100%}.el-tabs--left .el-tabs__active-bar.is-left,.el-tabs--left .el-tabs__active-bar.is-right,.el-tabs--right .el-tabs__active-bar.is-left,.el-tabs--right .el-tabs__active-bar.is-right{top:0;bottom:auto;width:2px;height:auto}.el-tabs--left .el-tabs__nav-wrap.is-left,.el-tabs--left .el-tabs__nav-wrap.is-right,.el-tabs--right .el-tabs__nav-wrap.is-left,.el-tabs--right .el-tabs__nav-wrap.is-right{margin-bottom:0}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev{height:30px;line-height:30px;width:100%;text-align:center;cursor:pointer}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next i,.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev i,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next i,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev i,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next i,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev i,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next i,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev i{transform:rotate(90deg)}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev{left:auto;top:0}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next{right:auto;bottom:0}.el-tabs--left .el-tabs__nav-wrap.is-left.is-scrollable,.el-tabs--left .el-tabs__nav-wrap.is-right.is-scrollable,.el-tabs--right .el-tabs__nav-wrap.is-left.is-scrollable,.el-tabs--right .el-tabs__nav-wrap.is-right.is-scrollable{padding:30px 0}.el-tabs--left .el-tabs__nav-wrap.is-left:after,.el-tabs--left .el-tabs__nav-wrap.is-right:after,.el-tabs--right .el-tabs__nav-wrap.is-left:after,.el-tabs--right .el-tabs__nav-wrap.is-right:after{height:100%;width:2px;bottom:auto;top:0}.el-tabs--left .el-tabs__nav.is-left,.el-tabs--left .el-tabs__nav.is-right,.el-tabs--right .el-tabs__nav.is-left,.el-tabs--right .el-tabs__nav.is-right{float:none}.el-tabs--left .el-tabs__item.is-left,.el-tabs--left .el-tabs__item.is-right,.el-tabs--right .el-tabs__item.is-left,.el-tabs--right .el-tabs__item.is-right{display:block}.el-tabs--left .el-tabs__header.is-left{float:left;margin-bottom:0;margin-right:10px}.el-tabs--left .el-tabs__nav-wrap.is-left{margin-right:-1px}.el-tabs--left .el-tabs__nav-wrap.is-left:after{left:auto;right:0}.el-tabs--left .el-tabs__active-bar.is-left{right:0;left:auto}.el-tabs--left .el-tabs__item.is-left{text-align:right}.el-tabs--left.el-tabs--card .el-tabs__active-bar.is-left{display:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left{border-left:none;border-right:1px solid var(--el-border-color-light);border-bottom:none;border-top:1px solid var(--el-border-color-light);text-align:left}.el-tabs--left.el-tabs--card .el-tabs__item.is-left:first-child{border-right:1px solid var(--el-border-color-light);border-top:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active{border:1px solid var(--el-border-color-light);border-right-color:#fff;border-left:none;border-bottom:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active:first-child{border-top:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active:last-child{border-bottom:none}.el-tabs--left.el-tabs--card .el-tabs__nav{border-radius:4px 0 0 4px;border-bottom:1px solid var(--el-border-color-light);border-right:none}.el-tabs--left.el-tabs--card .el-tabs__new-tab{float:none}.el-tabs--left.el-tabs--border-card .el-tabs__header.is-left{border-right:1px solid var(--el-border-color)}.el-tabs--left.el-tabs--border-card .el-tabs__item.is-left{border:1px solid transparent;margin:-1px 0 -1px -1px}.el-tabs--left.el-tabs--border-card .el-tabs__item.is-left.is-active{border-color:transparent;border-top-color:#d1dbe5;border-bottom-color:#d1dbe5}.el-tabs--right .el-tabs__header.is-right{float:right;margin-bottom:0;margin-left:10px}.el-tabs--right .el-tabs__nav-wrap.is-right{margin-left:-1px}.el-tabs--right .el-tabs__nav-wrap.is-right:after{left:0;right:auto}.el-tabs--right .el-tabs__active-bar.is-right{left:0}.el-tabs--right.el-tabs--card .el-tabs__active-bar.is-right{display:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right{border-bottom:none;border-top:1px solid var(--el-border-color-light)}.el-tabs--right.el-tabs--card .el-tabs__item.is-right:first-child{border-left:1px solid var(--el-border-color-light);border-top:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active{border:1px solid var(--el-border-color-light);border-left-color:#fff;border-right:none;border-bottom:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active:first-child{border-top:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active:last-child{border-bottom:none}.el-tabs--right.el-tabs--card .el-tabs__nav{border-radius:0 4px 4px 0;border-bottom:1px solid var(--el-border-color-light);border-left:none}.el-tabs--right.el-tabs--border-card .el-tabs__header.is-right{border-left:1px solid var(--el-border-color)}.el-tabs--right.el-tabs--border-card .el-tabs__item.is-right{border:1px solid transparent;margin:-1px -1px -1px 0}.el-tabs--right.el-tabs--border-card .el-tabs__item.is-right.is-active{border-color:transparent;border-top-color:#d1dbe5;border-bottom-color:#d1dbe5}.slideInLeft-transition,.slideInRight-transition{display:inline-block}.slideInRight-enter{-webkit-animation:slideInRight-enter var(--el-transition-duration);animation:slideInRight-enter var(--el-transition-duration)}.slideInRight-leave{position:absolute;left:0;right:0;-webkit-animation:slideInRight-leave var(--el-transition-duration);animation:slideInRight-leave var(--el-transition-duration)}.slideInLeft-enter{-webkit-animation:slideInLeft-enter var(--el-transition-duration);animation:slideInLeft-enter var(--el-transition-duration)}.slideInLeft-leave{position:absolute;left:0;right:0;-webkit-animation:slideInLeft-leave var(--el-transition-duration);animation:slideInLeft-leave var(--el-transition-duration)}@-webkit-keyframes slideInRight-enter{0%{opacity:0;transform-origin:0 0;transform:translate(100%)}to{opacity:1;transform-origin:0 0;transform:translate(0)}}@keyframes slideInRight-enter{0%{opacity:0;transform-origin:0 0;transform:translate(100%)}to{opacity:1;transform-origin:0 0;transform:translate(0)}}@-webkit-keyframes slideInRight-leave{0%{transform-origin:0 0;transform:translate(0);opacity:1}to{transform-origin:0 0;transform:translate(100%);opacity:0}}@keyframes slideInRight-leave{0%{transform-origin:0 0;transform:translate(0);opacity:1}to{transform-origin:0 0;transform:translate(100%);opacity:0}}@-webkit-keyframes slideInLeft-enter{0%{opacity:0;transform-origin:0 0;transform:translate(-100%)}to{opacity:1;transform-origin:0 0;transform:translate(0)}}@keyframes slideInLeft-enter{0%{opacity:0;transform-origin:0 0;transform:translate(-100%)}to{opacity:1;transform-origin:0 0;transform:translate(0)}}@-webkit-keyframes slideInLeft-leave{0%{transform-origin:0 0;transform:translate(0);opacity:1}to{transform-origin:0 0;transform:translate(-100%);opacity:0}}@keyframes slideInLeft-leave{0%{transform-origin:0 0;transform:translate(0);opacity:1}to{transform-origin:0 0;transform:translate(-100%);opacity:0}}.el-card{--el-card-border-color:var(--el-border-color-light);--el-card-border-radius:4px;--el-card-padding:20px;--el-card-bg-color:var(--el-fill-color-blank)}.el-card{border-radius:var(--el-card-border-radius);border:1px solid var(--el-card-border-color);background-color:var(--el-card-bg-color);overflow:hidden;color:var(--el-text-color-primary);transition:var(--el-transition-duration)}.el-card.is-always-shadow{box-shadow:var(--el-box-shadow-light)}.el-card.is-hover-shadow:focus,.el-card.is-hover-shadow:hover{box-shadow:var(--el-box-shadow-light)}.el-card__header{padding:calc(var(--el-card-padding) - 2px) var(--el-card-padding);border-bottom:1px solid var(--el-card-border-color);box-sizing:border-box}.el-card__body{padding:var(--el-card-padding)}.el-divider{position:relative}.el-divider--horizontal{display:block;height:1px;width:100%;margin:24px 0;border-top:1px var(--el-border-color) var(--el-border-style)}.el-divider--vertical{display:inline-block;width:1px;height:1em;margin:0 8px;vertical-align:middle;position:relative;border-left:1px var(--el-border-color) var(--el-border-style)}.el-divider__text{position:absolute;background-color:var(--el-bg-color);padding:0 20px;font-weight:500;color:var(--el-text-color-primary);font-size:14px}.el-divider__text.is-left{left:20px;transform:translateY(-50%)}.el-divider__text.is-center{left:50%;transform:translate(-50%) translateY(-50%)}.el-divider__text.is-right{right:20px;transform:translateY(-50%)}*{box-sizing:border-box}.slideshow-container{max-width:1000px;position:relative;margin:auto}.prev,.next{cursor:pointer;position:absolute;top:50%;width:auto;margin-top:-22px;padding:16px;color:#fff;font-weight:700;font-size:18px;transition:.6s ease;border-radius:0 3px 3px 0;user-select:none}.next{right:0;border-radius:3px 0 0 3px}.prev:hover,.next:hover{background-color:#000c}.text{color:#f2f2f2;font-size:15px;padding:8px 12px;position:absolute;bottom:8px;width:100%;text-align:center}.numbertext{color:#f2f2f2;font-size:12px;padding:8px 12px;position:absolute;top:0}.dot{cursor:pointer;height:15px;width:15px;margin:0 2px;background-color:#bbb;border-radius:50%;display:inline-block;transition:background-color .6s ease}.active,.dot:hover{background-color:#717171}.fade-enter-active,.fade-leave-active{transition:all .5s ease;max-height:450px;opacity:1}.fade-enter,.fade-leave-to{opacity:0;max-height:0px}.my-div{background:lightgreen}@keyframes fade{0%{opacity:.4}to{opacity:1}}.card-name[data-v-12a237d4]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--theme_text_color)}.tab[data-v-12a237d4]{background-color:var(--theme_bg_color);color:var(--theme_text_color)}.card-list[data-v-12a237d4]{display:flex;flex-wrap:wrap;flex-direction:row}.card-list .card[data-v-12a237d4]{cursor:pointer;background-color:var(--theme_component_color);margin:5px;height:500px;width:300px}.card-list .card .value[data-v-12a237d4]{font-size:12px;color:#999;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.selected[data-v-12a237d4]{border:1px solid var(--el-color-primary)}.custom-tabs-label[data-v-12a237d4]{background-color:var(--theme_bg_color);color:var(--theme_text_color)}.el-tabs__header[data-v-12a237d4]{z-index:9;position:sticky;top:0;background:var(--theme_bg_color)}.el-button{--el-button-font-weight:var(--el-font-weight-primary);--el-button-border-color:var(--el-border-color);--el-button-bg-color:var(--el-fill-color-blank);--el-button-text-color:var(--el-text-color-regular);--el-button-disabled-text-color:var(--el-disabled-text-color);--el-button-disabled-bg-color:var(--el-fill-color-blank);--el-button-disabled-border-color:var(--el-border-color-light);--el-button-divide-border-color:rgba(255, 255, 255, .5);--el-button-hover-text-color:var(--el-color-primary);--el-button-hover-bg-color:var(--el-color-primary-light-9);--el-button-hover-border-color:var(--el-color-primary-light-7);--el-button-active-text-color:var(--el-button-hover-text-color);--el-button-active-border-color:var(--el-color-primary);--el-button-active-bg-color:var(--el-button-hover-bg-color);--el-button-outline-color:var(--el-color-primary-light-5);--el-button-hover-link-text-color:var(--el-color-info);--el-button-active-color:var(--el-text-color-primary)}.el-button{display:inline-flex;justify-content:center;align-items:center;line-height:1;height:32px;white-space:nowrap;cursor:pointer;color:var(--el-button-text-color);text-align:center;box-sizing:border-box;outline:0;transition:.1s;font-weight:var(--el-button-font-weight);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;-webkit-appearance:none;background-color:var(--el-button-bg-color);border:var(--el-border);border-color:var(--el-button-border-color);padding:8px 15px;font-size:var(--el-font-size-base);border-radius:var(--el-border-radius-base)}.el-button:focus,.el-button:hover{color:var(--el-button-hover-text-color);border-color:var(--el-button-hover-border-color);background-color:var(--el-button-hover-bg-color);outline:0}.el-button:active{color:var(--el-button-active-text-color);border-color:var(--el-button-active-border-color);background-color:var(--el-button-active-bg-color);outline:0}.el-button:focus-visible{outline:2px solid var(--el-button-outline-color);outline-offset:1px}.el-button>span{display:inline-flex;align-items:center}.el-button+.el-button{margin-left:12px}.el-button.is-round{padding:8px 15px}.el-button::-moz-focus-inner{border:0}.el-button [class*=el-icon]+span{margin-left:6px}.el-button [class*=el-icon] svg{vertical-align:bottom}.el-button.is-plain{--el-button-hover-text-color:var(--el-color-primary);--el-button-hover-bg-color:var(--el-fill-color-blank);--el-button-hover-border-color:var(--el-color-primary)}.el-button.is-active{color:var(--el-button-active-text-color);border-color:var(--el-button-active-border-color);background-color:var(--el-button-active-bg-color);outline:0}.el-button.is-disabled,.el-button.is-disabled:focus,.el-button.is-disabled:hover{color:var(--el-button-disabled-text-color);cursor:not-allowed;background-image:none;background-color:var(--el-button-disabled-bg-color);border-color:var(--el-button-disabled-border-color)}.el-button.is-loading{position:relative;pointer-events:none}.el-button.is-loading:before{z-index:1;pointer-events:none;content:"";position:absolute;left:-1px;top:-1px;right:-1px;bottom:-1px;border-radius:inherit;background-color:var(--el-mask-color-extra-light)}.el-button.is-round{border-radius:var(--el-border-radius-round)}.el-button.is-circle{border-radius:50%;padding:8px}.el-button.is-text{color:var(--el-button-text-color);border:0 solid transparent;background-color:transparent}.el-button.is-text.is-disabled{color:var(--el-button-disabled-text-color);background-color:transparent!important}.el-button.is-text:not(.is-disabled):focus,.el-button.is-text:not(.is-disabled):hover{background-color:var(--el-fill-color-light)}.el-button.is-text:not(.is-disabled):focus-visible{outline:2px solid var(--el-button-outline-color);outline-offset:1px}.el-button.is-text:not(.is-disabled):active{background-color:var(--el-fill-color)}.el-button.is-text:not(.is-disabled).is-has-bg{background-color:var(--el-fill-color-light)}.el-button.is-text:not(.is-disabled).is-has-bg:focus,.el-button.is-text:not(.is-disabled).is-has-bg:hover{background-color:var(--el-fill-color)}.el-button.is-text:not(.is-disabled).is-has-bg:active{background-color:var(--el-fill-color-dark)}.el-button__text--expand{letter-spacing:.3em;margin-right:-.3em}.el-button.is-link{border-color:transparent;color:var(--el-button-text-color);background:0 0;padding:2px;height:auto}.el-button.is-link:focus,.el-button.is-link:hover{color:var(--el-button-hover-link-text-color)}.el-button.is-link.is-disabled{color:var(--el-button-disabled-text-color);background-color:transparent!important;border-color:transparent!important}.el-button.is-link:not(.is-disabled):focus,.el-button.is-link:not(.is-disabled):hover{border-color:transparent;background-color:transparent}.el-button.is-link:not(.is-disabled):active{color:var(--el-button-active-color);border-color:transparent;background-color:transparent}.el-button--text{border-color:transparent;background:0 0;color:var(--el-color-primary);padding-left:0;padding-right:0}.el-button--text.is-disabled{color:var(--el-button-disabled-text-color);background-color:transparent!important;border-color:transparent!important}.el-button--text:not(.is-disabled):focus,.el-button--text:not(.is-disabled):hover{color:var(--el-color-primary-light-3);border-color:transparent;background-color:transparent}.el-button--text:not(.is-disabled):active{color:var(--el-color-primary-dark-2);border-color:transparent;background-color:transparent}.el-button__link--expand{letter-spacing:.3em;margin-right:-.3em}.el-button--primary{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-primary);--el-button-border-color:var(--el-color-primary);--el-button-outline-color:var(--el-color-primary-light-5);--el-button-active-color:var(--el-color-primary-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-primary-light-5);--el-button-hover-bg-color:var(--el-color-primary-light-3);--el-button-hover-border-color:var(--el-color-primary-light-3);--el-button-active-bg-color:var(--el-color-primary-dark-2);--el-button-active-border-color:var(--el-color-primary-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-primary-light-5);--el-button-disabled-border-color:var(--el-color-primary-light-5)}.el-button--primary.is-link,.el-button--primary.is-plain,.el-button--primary.is-text{--el-button-text-color:var(--el-color-primary);--el-button-bg-color:var(--el-color-primary-light-9);--el-button-border-color:var(--el-color-primary-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-primary);--el-button-hover-border-color:var(--el-color-primary);--el-button-active-text-color:var(--el-color-white)}.el-button--primary.is-link.is-disabled,.el-button--primary.is-link.is-disabled:active,.el-button--primary.is-link.is-disabled:focus,.el-button--primary.is-link.is-disabled:hover,.el-button--primary.is-plain.is-disabled,.el-button--primary.is-plain.is-disabled:active,.el-button--primary.is-plain.is-disabled:focus,.el-button--primary.is-plain.is-disabled:hover,.el-button--primary.is-text.is-disabled,.el-button--primary.is-text.is-disabled:active,.el-button--primary.is-text.is-disabled:focus,.el-button--primary.is-text.is-disabled:hover{color:var(--el-color-primary-light-5);background-color:var(--el-color-primary-light-9);border-color:var(--el-color-primary-light-8)}.el-button--success{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-success);--el-button-border-color:var(--el-color-success);--el-button-outline-color:var(--el-color-success-light-5);--el-button-active-color:var(--el-color-success-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-success-light-5);--el-button-hover-bg-color:var(--el-color-success-light-3);--el-button-hover-border-color:var(--el-color-success-light-3);--el-button-active-bg-color:var(--el-color-success-dark-2);--el-button-active-border-color:var(--el-color-success-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-success-light-5);--el-button-disabled-border-color:var(--el-color-success-light-5)}.el-button--success.is-link,.el-button--success.is-plain,.el-button--success.is-text{--el-button-text-color:var(--el-color-success);--el-button-bg-color:var(--el-color-success-light-9);--el-button-border-color:var(--el-color-success-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-success);--el-button-hover-border-color:var(--el-color-success);--el-button-active-text-color:var(--el-color-white)}.el-button--success.is-link.is-disabled,.el-button--success.is-link.is-disabled:active,.el-button--success.is-link.is-disabled:focus,.el-button--success.is-link.is-disabled:hover,.el-button--success.is-plain.is-disabled,.el-button--success.is-plain.is-disabled:active,.el-button--success.is-plain.is-disabled:focus,.el-button--success.is-plain.is-disabled:hover,.el-button--success.is-text.is-disabled,.el-button--success.is-text.is-disabled:active,.el-button--success.is-text.is-disabled:focus,.el-button--success.is-text.is-disabled:hover{color:var(--el-color-success-light-5);background-color:var(--el-color-success-light-9);border-color:var(--el-color-success-light-8)}.el-button--warning{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-warning);--el-button-border-color:var(--el-color-warning);--el-button-outline-color:var(--el-color-warning-light-5);--el-button-active-color:var(--el-color-warning-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-warning-light-5);--el-button-hover-bg-color:var(--el-color-warning-light-3);--el-button-hover-border-color:var(--el-color-warning-light-3);--el-button-active-bg-color:var(--el-color-warning-dark-2);--el-button-active-border-color:var(--el-color-warning-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-warning-light-5);--el-button-disabled-border-color:var(--el-color-warning-light-5)}.el-button--warning.is-link,.el-button--warning.is-plain,.el-button--warning.is-text{--el-button-text-color:var(--el-color-warning);--el-button-bg-color:var(--el-color-warning-light-9);--el-button-border-color:var(--el-color-warning-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-warning);--el-button-hover-border-color:var(--el-color-warning);--el-button-active-text-color:var(--el-color-white)}.el-button--warning.is-link.is-disabled,.el-button--warning.is-link.is-disabled:active,.el-button--warning.is-link.is-disabled:focus,.el-button--warning.is-link.is-disabled:hover,.el-button--warning.is-plain.is-disabled,.el-button--warning.is-plain.is-disabled:active,.el-button--warning.is-plain.is-disabled:focus,.el-button--warning.is-plain.is-disabled:hover,.el-button--warning.is-text.is-disabled,.el-button--warning.is-text.is-disabled:active,.el-button--warning.is-text.is-disabled:focus,.el-button--warning.is-text.is-disabled:hover{color:var(--el-color-warning-light-5);background-color:var(--el-color-warning-light-9);border-color:var(--el-color-warning-light-8)}.el-button--danger{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-danger);--el-button-border-color:var(--el-color-danger);--el-button-outline-color:var(--el-color-danger-light-5);--el-button-active-color:var(--el-color-danger-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-danger-light-5);--el-button-hover-bg-color:var(--el-color-danger-light-3);--el-button-hover-border-color:var(--el-color-danger-light-3);--el-button-active-bg-color:var(--el-color-danger-dark-2);--el-button-active-border-color:var(--el-color-danger-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-danger-light-5);--el-button-disabled-border-color:var(--el-color-danger-light-5)}.el-button--danger.is-link,.el-button--danger.is-plain,.el-button--danger.is-text{--el-button-text-color:var(--el-color-danger);--el-button-bg-color:var(--el-color-danger-light-9);--el-button-border-color:var(--el-color-danger-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-danger);--el-button-hover-border-color:var(--el-color-danger);--el-button-active-text-color:var(--el-color-white)}.el-button--danger.is-link.is-disabled,.el-button--danger.is-link.is-disabled:active,.el-button--danger.is-link.is-disabled:focus,.el-button--danger.is-link.is-disabled:hover,.el-button--danger.is-plain.is-disabled,.el-button--danger.is-plain.is-disabled:active,.el-button--danger.is-plain.is-disabled:focus,.el-button--danger.is-plain.is-disabled:hover,.el-button--danger.is-text.is-disabled,.el-button--danger.is-text.is-disabled:active,.el-button--danger.is-text.is-disabled:focus,.el-button--danger.is-text.is-disabled:hover{color:var(--el-color-danger-light-5);background-color:var(--el-color-danger-light-9);border-color:var(--el-color-danger-light-8)}.el-button--info{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-info);--el-button-border-color:var(--el-color-info);--el-button-outline-color:var(--el-color-info-light-5);--el-button-active-color:var(--el-color-info-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-info-light-5);--el-button-hover-bg-color:var(--el-color-info-light-3);--el-button-hover-border-color:var(--el-color-info-light-3);--el-button-active-bg-color:var(--el-color-info-dark-2);--el-button-active-border-color:var(--el-color-info-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-info-light-5);--el-button-disabled-border-color:var(--el-color-info-light-5)}.el-button--info.is-link,.el-button--info.is-plain,.el-button--info.is-text{--el-button-text-color:var(--el-color-info);--el-button-bg-color:var(--el-color-info-light-9);--el-button-border-color:var(--el-color-info-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-info);--el-button-hover-border-color:var(--el-color-info);--el-button-active-text-color:var(--el-color-white)}.el-button--info.is-link.is-disabled,.el-button--info.is-link.is-disabled:active,.el-button--info.is-link.is-disabled:focus,.el-button--info.is-link.is-disabled:hover,.el-button--info.is-plain.is-disabled,.el-button--info.is-plain.is-disabled:active,.el-button--info.is-plain.is-disabled:focus,.el-button--info.is-plain.is-disabled:hover,.el-button--info.is-text.is-disabled,.el-button--info.is-text.is-disabled:active,.el-button--info.is-text.is-disabled:focus,.el-button--info.is-text.is-disabled:hover{color:var(--el-color-info-light-5);background-color:var(--el-color-info-light-9);border-color:var(--el-color-info-light-8)}.el-button--large{--el-button-size:40px;height:var(--el-button-size);padding:12px 19px;font-size:var(--el-font-size-base);border-radius:var(--el-border-radius-base)}.el-button--large [class*=el-icon]+span{margin-left:8px}.el-button--large.is-round{padding:12px 19px}.el-button--large.is-circle{width:var(--el-button-size);padding:12px}.el-button--small{--el-button-size:24px;height:var(--el-button-size);padding:5px 11px;font-size:12px;border-radius:calc(var(--el-border-radius-base) - 1px)}.el-button--small [class*=el-icon]+span{margin-left:4px}.el-button--small.is-round{padding:5px 11px}.el-button--small.is-circle{width:var(--el-button-size);padding:5px}.el-icon-loading{-webkit-animation:rotating 2s linear infinite;animation:rotating 2s linear infinite}.el-icon--right{margin-left:5px}.el-icon--left{margin-right:5px}@-webkit-keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.el-icon{--color:inherit;height:1em;width:1em;line-height:1em;display:inline-flex;justify-content:center;align-items:center;position:relative;fill:currentColor;color:var(--color);font-size:inherit}.el-icon.is-loading{-webkit-animation:rotating 2s linear infinite;animation:rotating 2s linear infinite}.el-icon svg{height:1em;width:1em}.el-badge{--el-badge-bg-color:var(--el-color-danger);--el-badge-radius:10px;--el-badge-font-size:12px;--el-badge-padding:6px;--el-badge-size:18px;position:relative;vertical-align:middle;display:inline-block}.el-badge__content{background-color:var(--el-badge-bg-color);border-radius:var(--el-badge-radius);color:var(--el-color-white);display:inline-flex;justify-content:center;align-items:center;font-size:var(--el-badge-font-size);height:var(--el-badge-size);padding:0 var(--el-badge-padding);white-space:nowrap;border:1px solid var(--el-bg-color)}.el-badge__content.is-fixed{position:absolute;top:0;right:calc(1px + var(--el-badge-size)/ 2);transform:translateY(-50%) translate(100%)}.el-badge__content.is-fixed.is-dot{right:5px}.el-badge__content.is-dot{height:8px;width:8px;padding:0;right:0;border-radius:50%}.el-badge__content--primary{background-color:var(--el-color-primary)}.el-badge__content--success{background-color:var(--el-color-success)}.el-badge__content--warning{background-color:var(--el-color-warning)}.el-badge__content--info{background-color:var(--el-color-info)}.el-badge__content--danger{background-color:var(--el-color-danger)}.el-message{--el-message-bg-color:var(--el-color-info-light-9);--el-message-border-color:var(--el-border-color-lighter);--el-message-padding:15px 19px;--el-message-close-size:16px;--el-message-close-icon-color:var(--el-text-color-placeholder);--el-message-close-hover-color:var(--el-text-color-secondary)}.el-message{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;max-width:calc(100% - 32px);box-sizing:border-box;border-radius:var(--el-border-radius-base);border-width:var(--el-border-width);border-style:var(--el-border-style);border-color:var(--el-message-border-color);position:fixed;left:50%;top:20px;transform:translate(-50%);background-color:var(--el-message-bg-color);transition:opacity var(--el-transition-duration),transform .4s,top .4s;padding:var(--el-message-padding);display:flex;align-items:center}.el-message.is-center{justify-content:center}.el-message.is-closable .el-message__content{padding-right:31px}.el-message p{margin:0}.el-message--success{--el-message-bg-color:var(--el-color-success-light-9);--el-message-border-color:var(--el-color-success-light-8);--el-message-text-color:var(--el-color-success)}.el-message--success .el-message__content{color:var(--el-message-text-color);overflow-wrap:anywhere}.el-message .el-message-icon--success{color:var(--el-message-text-color)}.el-message--info{--el-message-bg-color:var(--el-color-info-light-9);--el-message-border-color:var(--el-color-info-light-8);--el-message-text-color:var(--el-color-info)}.el-message--info .el-message__content{color:var(--el-message-text-color);overflow-wrap:anywhere}.el-message .el-message-icon--info{color:var(--el-message-text-color)}.el-message--warning{--el-message-bg-color:var(--el-color-warning-light-9);--el-message-border-color:var(--el-color-warning-light-8);--el-message-text-color:var(--el-color-warning)}.el-message--warning .el-message__content{color:var(--el-message-text-color);overflow-wrap:anywhere}.el-message .el-message-icon--warning{color:var(--el-message-text-color)}.el-message--error{--el-message-bg-color:var(--el-color-error-light-9);--el-message-border-color:var(--el-color-error-light-8);--el-message-text-color:var(--el-color-error)}.el-message--error .el-message__content{color:var(--el-message-text-color);overflow-wrap:anywhere}.el-message .el-message-icon--error{color:var(--el-message-text-color)}.el-message__icon{margin-right:10px}.el-message .el-message__badge{position:absolute;top:-8px;right:-8px}.el-message__content{padding:0;font-size:14px;line-height:1}.el-message__content:focus{outline-width:0}.el-message .el-message__closeBtn{position:absolute;top:50%;right:19px;transform:translateY(-50%);cursor:pointer;color:var(--el-message-close-icon-color);font-size:var(--el-message-close-size)}.el-message .el-message__closeBtn:focus{outline-width:0}.el-message .el-message__closeBtn:hover{color:var(--el-message-close-hover-color)}.el-message-fade-enter-from,.el-message-fade-leave-to{opacity:0;transform:translate(-50%,-100%)}.tab[data-v-7e6073ae]{background-color:var(--theme_bg_color);color:var(--theme_text_color)}.bottom-bar[data-v-7e6073ae]{position:sticky;bottom:0;display:flex;background:#eee;flex-direction:column;align-items:center;padding:5px 5px 0;background-color:var(--theme_bg_color);color:var(--theme_text_color)}.card[data-v-7e6073ae]{font-size:12px;color:#999;background-color:var(--theme_bg_color)}.btn[data-v-7e6073ae]{margin:3px 5px}.button-28{appearance:none;background-color:var(--theme_bg_color);border:2px solid var(--theme_text_color);border-radius:15px;box-sizing:border-box;color:var(--theme_text_color);cursor:pointer;display:inline-block;font-family:Roobert,-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;font-size:16px;font-weight:600;line-height:normal;margin:15px;max-width:180px;max-height:30px;min-height:60px;min-width:0;outline:none;padding:16px 24px;text-align:center;text-decoration:none;transition:all .3s cubic-bezier(.23,1,.32,1);user-select:none;-webkit-user-select:none;touch-action:manipulation;width:100%;will-change:transform}.button-28:disabled{pointer-events:none}.button-28:hover{color:var(--theme_text_color);background-color:var(--theme_bg_color);box-shadow:#00000040 0 8px 15px;transform:translateY(-2px)}.button-28:active{box-shadow:none;transform:translateY(0)}.about{display:flex;justify-content:center}.about .div_test{width:40px}.el-popover.popverClass .div_content .content_checkbox .el-checkbox-group{display:flex;flex-direction:column}:root{--theme_bg_color: white;--theme_button_color: white;--theme_text_color: black;--theme_component_color: white}body{background-color:var(--theme_bg_color);color:var(--theme_text_color)}.mybutton{position:relative;top:0;left:0} 2 | -------------------------------------------------------------------------------- /assets/tags.yaml: -------------------------------------------------------------------------------- 1 | Presets: 2 | General: 3 | "General_ice_high_res": 4 | value: "flowing ice, portrait, focus on face, complex, extremely detailed , elegant, CG, (an extremely delicate and beautiful girl), incredibly absurdres, best quality,concept art" 5 | negative: "lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts,signature, watermark, username, blurry, artist name,bad feet, multiple breasts, lowres, bad anatomy, bad hands, text, error, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry, bad feet, single color, ((((ugly)))), (((duplicate))), ((morbid)), ((mutilated)), (((tranny))), (((trans))), (((trannsexual))), (hermaphrodite), (out of frame), extra fingers, mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), ((ugly)), blurry, ((bad anatomy)), (((bad proportions))), ((extra limbs)), (((disfigured))), out of frame, (bad anatomy), gross proportions, (malformed limbs), ((missing arms)), ((missing legs)), (((extra arms))), (((extra legs))), mutated hands,(fused fingers), (too many fingers), (((long neck))), more than one people, more than one light, more than one head, more than one face, more than one body," 6 | "General_fire_high_res": 7 | value: "flowing fire, portrait, focus on face, complex, extremely detailed , elegant, CG, (an extremely delicate and beautiful girl), incredibly absurdres, best quality,concept art" 8 | negative: "lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts,signature, watermark, username, blurry, artist name,bad feet, multiple breasts, lowres, bad anatomy, bad hands, text, error, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry, bad feet, single color, ((((ugly)))), (((duplicate))), ((morbid)), ((mutilated)), (((tranny))), (((trans))), (((trannsexual))), (hermaphrodite), (out of frame), extra fingers, mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), ((ugly)), blurry, ((bad anatomy)), (((bad proportions))), ((extra limbs)), (((disfigured))), out of frame, (bad anatomy), gross proportions, (malformed limbs), ((missing arms)), ((missing legs)), (((extra arms))), (((extra legs))), mutated hands,(fused fingers), (too many fingers), (((long neck))), more than one people, more than one light, more than one head, more than one face, more than one body," 9 | "General_celluloid_online_clean": 10 | value: "best quality, masterpiece, highres, original, extremely detailed wallpaper, intricate detailed" 11 | param: "Steps: 30, Sampler: Euler, CFG scale: 11.5, Seed: 1058629707, Size: 512x768, Variation seed: 1692844643, Variation seed strength: 0.27, Seed resize from: 1088x512" 12 | Style: 13 | ArtStyle: 14 | ink doodle: 15 | value: ink doodle 16 | cartoon: 17 | value: "(((cartoon)))" 18 | 3D: 19 | 3dCG: 20 | value: "3d" 21 | -------------------------------------------------------------------------------- /images/0-0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dr413677671/PromptGallery-stable-diffusion-webui/5e28ec34dabc625b38e7a967471f9d4dbda133ec/images/0-0.png -------------------------------------------------------------------------------- /images/0-1.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dr413677671/PromptGallery-stable-diffusion-webui/5e28ec34dabc625b38e7a967471f9d4dbda133ec/images/0-1.JPG -------------------------------------------------------------------------------- /images/2-1.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dr413677671/PromptGallery-stable-diffusion-webui/5e28ec34dabc625b38e7a967471f9d4dbda133ec/images/2-1.JPG -------------------------------------------------------------------------------- /images/2-2.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dr413677671/PromptGallery-stable-diffusion-webui/5e28ec34dabc625b38e7a967471f9d4dbda133ec/images/2-2.JPG -------------------------------------------------------------------------------- /images/3-1.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dr413677671/PromptGallery-stable-diffusion-webui/5e28ec34dabc625b38e7a967471f9d4dbda133ec/images/3-1.JPG -------------------------------------------------------------------------------- /images/3-2.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dr413677671/PromptGallery-stable-diffusion-webui/5e28ec34dabc625b38e7a967471f9d4dbda133ec/images/3-2.JPG -------------------------------------------------------------------------------- /images/3-3.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dr413677671/PromptGallery-stable-diffusion-webui/5e28ec34dabc625b38e7a967471f9d4dbda133ec/images/3-3.JPG -------------------------------------------------------------------------------- /images/3-4.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dr413677671/PromptGallery-stable-diffusion-webui/5e28ec34dabc625b38e7a967471f9d4dbda133ec/images/3-4.JPG -------------------------------------------------------------------------------- /images/3-5.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dr413677671/PromptGallery-stable-diffusion-webui/5e28ec34dabc625b38e7a967471f9d4dbda133ec/images/3-5.JPG -------------------------------------------------------------------------------- /images/3-6.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dr413677671/PromptGallery-stable-diffusion-webui/5e28ec34dabc625b38e7a967471f9d4dbda133ec/images/3-6.JPG -------------------------------------------------------------------------------- /images/3-7.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dr413677671/PromptGallery-stable-diffusion-webui/5e28ec34dabc625b38e7a967471f9d4dbda133ec/images/3-7.JPG -------------------------------------------------------------------------------- /images/front.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dr413677671/PromptGallery-stable-diffusion-webui/5e28ec34dabc625b38e7a967471f9d4dbda133ec/images/front.JPG -------------------------------------------------------------------------------- /images/install.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dr413677671/PromptGallery-stable-diffusion-webui/5e28ec34dabc625b38e7a967471f9d4dbda133ec/images/install.JPG -------------------------------------------------------------------------------- /images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dr413677671/PromptGallery-stable-diffusion-webui/5e28ec34dabc625b38e7a967471f9d4dbda133ec/images/logo.png -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Prompt Gallery 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /install.py: -------------------------------------------------------------------------------- 1 | import os 2 | import shutil 3 | import json 4 | import launch 5 | 6 | 7 | if not launch.is_installed("pyyaml"): 8 | launch.run_pip("install pyyaml", "requirements for Prompt Gallery") 9 | 10 | current_dir= os.path.abspath(os.path.dirname(__file__)) 11 | trg = os.path.join(os.path.join(os.path.join(current_dir, os.path.pardir), os.path.pardir), "scripts/prompt_gallery.py") 12 | shutil.copyfile(os.path.join(os.path.join(current_dir,"paste_this_to_webui_scripts_folder"),"prompt_gallery.py"), trg) 13 | name = os.path.basename(current_dir) 14 | with open(os.path.join(current_dir, os.path.join(os.path.join(current_dir, os.path.pardir), "prompt_gallery_name.json")), 'w') as fd: 15 | json.dump({'name': name}, fd) 16 | -------------------------------------------------------------------------------- /paste_this_to_webui_scripts_folder/prompt_gallery.py: -------------------------------------------------------------------------------- 1 | import copy 2 | import os 3 | import random 4 | import sys 5 | import traceback 6 | import shlex 7 | import yaml 8 | import platform 9 | import subprocess as sp 10 | import shutil 11 | import json 12 | import tempfile 13 | import gradio as gr 14 | import csv 15 | import typing 16 | import base64 17 | import io 18 | from PIL import Image 19 | import mimetypes 20 | from modules.paths_internal import extensions_dir 21 | mimetypes.init() 22 | mimetypes.add_type('application/javascript', '.js') 23 | 24 | import modules.generation_parameters_copypaste as parameters_copypaste 25 | from modules.generation_parameters_copypaste import image_from_url_text 26 | import modules.scripts as scripts 27 | from modules.processing import Processed, process_images 28 | 29 | from modules.shared import opts, cmd_opts, OptionInfo, hide_dirs, state 30 | import modules.shared as shared 31 | 32 | if '__file__' in locals().keys(): 33 | root_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) 34 | root_path = os.path.abspath(os.path.join(root_path, os.path.pardir)) 35 | else: 36 | root_path = os.path.abspath(shared.script_path) 37 | 38 | rela_path = os.path.join('extensions') 39 | 40 | try: 41 | with open(os.path.join(extensions_dir, 'prompt_gallery_name.json')) as fd: 42 | extension_name = json.load(fd)['name'] 43 | except: 44 | extension_name = "Prompt Gallery" 45 | 46 | OUTPATH_SAMPLES = os.path.join(extensions_dir, extension_name, 'assets', 'preview') 47 | OUTPATH_GRIDS = os.path.join(extensions_dir, extension_name, 'assets', 'grid') 48 | 49 | BATCH_SIZE = 2 50 | N_ITER = 2 51 | STEPS = 30 52 | CFG_SCALE = 11.5 53 | WIDTH = 512 54 | HEIGHT = 768 55 | SAMPLER_INDEX = 1 56 | RESTORE_FACE = 'true' 57 | TILING = 'false' 58 | DO_NOT_SAVE_GRID = 'false' 59 | 60 | EXCLUDED_TAGS = [''] 61 | global SKIP_EXISTS 62 | SKIP_EXISTS = True 63 | 64 | OUTPUTS_DICT = list() 65 | OUTPUTS = {} 66 | rawDict = {} 67 | qc_dict = {} 68 | trg_img = '' 69 | current_folder = '' 70 | 71 | 72 | def options_section_def(section_identifier, options_dict): 73 | ret = {} 74 | for k, v in options_dict.items(): 75 | v.section = section_identifier 76 | ret[k] = v.default 77 | return ret 78 | 79 | pg_templates = {} 80 | 81 | pg_templates.update(options_section_def(('saving-images', "Saving images/grids"), { 82 | "samples_save": OptionInfo(True, "Always save all generated images"), 83 | "samples_format": OptionInfo('png', 'File format for images'), 84 | "samples_filename_pattern": OptionInfo("[seed]", "Images filename pattern", component_args=hide_dirs), 85 | "save_images_add_number": OptionInfo(True, "Add number to filename when saving", component_args=hide_dirs), 86 | 87 | "grid_save": OptionInfo(True, "Always save all generated image grids"), 88 | "grid_format": OptionInfo('png', 'File format for grids'), 89 | "grid_extended_filename": OptionInfo(False, "Add extended info (seed, prompt) to filename when saving grid"), 90 | "grid_only_if_multiple": OptionInfo(True, "Do not save grids consisting of one picture"), 91 | "grid_prevent_empty_spots": OptionInfo(False, "Prevent empty spots in grid (when set to autodetect)"), 92 | "n_rows": OptionInfo(-1, "Grid row count; use -1 for autodetect and 0 for it to be same as batch size", gr.Slider, {"minimum": -1, "maximum": 16, "step": 1}), 93 | 94 | "enable_pnginfo": OptionInfo(True, "Save text information about generation parameters as chunks to png files"), 95 | "save_txt": OptionInfo(False, "Create a text file next to every image with generation parameters."), 96 | "jpeg_quality": OptionInfo(80, "Quality for saved jpeg images", gr.Slider, {"minimum": 1, "maximum": 100, "step": 1}), 97 | "export_for_4chan": OptionInfo(True, "If PNG image is larger than 4MB or any dimension is larger than 4000, downscale and save copy as JPG"), 98 | 99 | "use_original_name_batch": OptionInfo(False, "Use original name for output filename during batch process in extras tab"), 100 | "save_selected_only": OptionInfo(True, "When using 'Save' button, only save a single selected image"), 101 | "do_not_add_watermark": OptionInfo(False, "Do not add watermark to images"), 102 | 103 | })) 104 | 105 | # pg_templates.update(options_section_def(('saving-paths', "Paths for saving"), { 106 | # "outdir_samples": OptionInfo("", "Output directory for images; if empty, defaults to three directories below", component_args=hide_dirs), 107 | # "outdir_txt2img_samples": OptionInfo("outputs/txt2img-images", 'Output directory for txt2img images', component_args=hide_dirs), 108 | # "outdir_img2img_samples": OptionInfo("outputs/img2img-images", 'Output directory for img2img images', component_args=hide_dirs), 109 | # "outdir_extras_samples": OptionInfo("outputs/extras-images", 'Output directory for images from extras tab', component_args=hide_dirs), 110 | # "outdir_grids": OptionInfo("", "Output directory for grids; if empty, defaults to two directories below", component_args=hide_dirs), 111 | # "outdir_txt2img_grids": OptionInfo("outputs/txt2img-grids", 'Output directory for txt2img grids', component_args=hide_dirs), 112 | # "outdir_img2img_grids": OptionInfo("outputs/img2img-grids", 'Output directory for img2img grids', component_args=hide_dirs), 113 | # "outdir_save": OptionInfo("log/images", "Directory for saving images using the Save button", component_args=hide_dirs), 114 | # })) 115 | 116 | 117 | pg_templates.update(options_section_def(('saving-to-dirs', "Saving to a directory"), { 118 | "save_to_dirs": OptionInfo(False, "Save images to a subdirectory"), 119 | "grid_save_to_dirs": OptionInfo(False, "Save grids to a subdirectory"), 120 | "use_save_to_dirs_for_ui": OptionInfo(False, "When using \"Save\" button, save images to a subdirectory"), 121 | "directories_filename_pattern": OptionInfo("", "Directory name pattern", component_args=hide_dirs), 122 | "directories_max_prompt_words": OptionInfo(8, "Max prompt words for [prompt_words] pattern", gr.Slider, {"minimum": 1, "maximum": 20, "step": 1, **hide_dirs}), 123 | })) 124 | 125 | pg_templates.update(options_section_def(('upscaling', "Upscaling"), { 126 | "ESRGAN_tile": OptionInfo(192, "Tile size for ESRGAN upscalers. 0 = no tiling.", gr.Slider, {"minimum": 0, "maximum": 512, "step": 16}), 127 | "ESRGAN_tile_overlap": OptionInfo(8, "Tile overlap, in pixels for ESRGAN upscalers. Low values = visible seam.", gr.Slider, {"minimum": 0, "maximum": 48, "step": 1}), 128 | "realesrgan_enabled_models": OptionInfo(["R-ESRGAN 4x+", "R-ESRGAN 4x+ Anime6B"], "Select which Real-ESRGAN models to show in the web UI. (Requires restart)", gr.CheckboxGroup, lambda: {"choices": realesrgan_models_names()}), 129 | "upscaler_for_img2img": OptionInfo(None, "Upscaler for img2img", gr.Dropdown, lambda: {"choices": [x.name for x in sd_upscalers]}), 130 | "use_scale_latent_for_hires_fix": OptionInfo(False, "Upscale latent space image when doing hires. fix"), 131 | })) 132 | 133 | pg_templates.update(options_section_def(('ui', "User interface"), { 134 | "show_progressbar": OptionInfo(True, "Show progressbar"), 135 | "show_progress_every_n_steps": OptionInfo(0, "Show image creation progress every N sampling steps. Set to 0 to disable. Set to -1 to show after completion of batch.", gr.Slider, {"minimum": -1, "maximum": 32, "step": 1}), 136 | "show_progress_grid": OptionInfo(True, "Show previews of all images generated in a batch as a grid"), 137 | "return_grid": OptionInfo(True, "Show grid in results for web"), 138 | "do_not_show_images": OptionInfo(False, "Do not show any images in results for web"), 139 | # "disable_weights_auto_swap": OptionInfo(False, "When reading generation parameters from text into UI (from PNG info or pasted text), do not change the selected model/checkpoint."), 140 | "send_seed": OptionInfo(True, "Send seed when sending prompt or image to other interface"), 141 | "font": OptionInfo("", "Font for image grids that have text"), 142 | "js_modal_lightbox": OptionInfo(True, "Enable full page image viewer"), 143 | "js_modal_lightbox_initially_zoomed": OptionInfo(True, "Show images zoomed in by default in full page image viewer"), 144 | "show_progress_in_title": OptionInfo(True, "Show generation progress in window title."), 145 | 'localization': OptionInfo("None", "Localization (requires restart)", gr.Dropdown, lambda: {"choices": ["None"] + list(localization.localizations.keys())}, refresh=lambda: localization.list_localizations(cmd_opts.localizations_dir)), 146 | })) 147 | 148 | map_sampler_to_idx = { 149 | 'Euler a': 0, 150 | 'Euler': 1, 151 | 'LMS': 2, 152 | 'Heun': 3, 153 | 'DPM2': 4, 154 | 'DPM2 a': 5, 155 | 'DPM fast': 6, 156 | 'DPM adaptive': 7, 157 | 'LMS Karras': 8, 158 | 'DPM2 Karras': 9, 159 | 'DPM2 a Karras': 10, 160 | 'DDIM': 11, 161 | 'PLMS': 12, 162 | 'DPM++ 2S a Karras': 13, 163 | 'DPM++ 2M Karras': 14, 164 | 'DPM++ SDE Karras': 15} 165 | 166 | map_keys = { 167 | "value": "prompt", 168 | "negative": "negative_prompt"} 169 | 170 | map_param = { 171 | "sd_model": "sd_model", 172 | "outpath_samples": "outpath_samples", 173 | "outpath_grids": "outpath_grids", 174 | "prompt_for_display": "prompt_for_display", 175 | "styles": "styles", 176 | "Seed": "seed", 177 | "Variation seed strength": "subseed_strength", 178 | "Variation seed": "subseed", 179 | "seed_resize_from_h": "seed_resize_from_h", 180 | "seed_resize_from_w": "seed_resize_from_w", 181 | "Sampler": "sampler_index", 182 | "batch_size": "batch_size", 183 | "n_iter": "n_iter", 184 | "Steps": "steps", 185 | "CFG scale": "cfg_scale", 186 | "width": "width", 187 | "height": "height", 188 | "restore_faces": "restore_faces", 189 | "tiling": "tiling", 190 | "do_not_save_samples": "do_not_save_samples", 191 | "do_not_save_grid": "do_not_save_grid"} 192 | 193 | def process_string_tag(tag): 194 | return tag 195 | 196 | 197 | def process_int_tag(tag): 198 | return int(tag) 199 | 200 | 201 | def process_float_tag(tag): 202 | return float(tag) 203 | 204 | 205 | def process_boolean_tag(tag): 206 | return True if (tag == "true") else False 207 | 208 | 209 | prompt_tags = { 210 | "sd_model": None, 211 | "outpath_samples": process_string_tag, 212 | "outpath_grids": process_string_tag, 213 | "prompt_for_display": process_string_tag, 214 | "prompt": process_string_tag, 215 | "negative_prompt": process_string_tag, 216 | "styles": process_string_tag, 217 | "seed": process_int_tag, 218 | "subseed_strength": process_float_tag, 219 | "subseed": process_int_tag, 220 | "seed_resize_from_h": process_int_tag, 221 | "seed_resize_from_w": process_int_tag, 222 | "sampler_index": process_int_tag, 223 | "batch_size": process_int_tag, 224 | "n_iter": process_int_tag, 225 | "steps": process_int_tag, 226 | "cfg_scale": process_float_tag, 227 | "width": process_int_tag, 228 | "height": process_int_tag, 229 | "restore_faces": process_boolean_tag, 230 | "tiling": process_boolean_tag, 231 | "do_not_save_samples": process_boolean_tag, 232 | "do_not_save_grid": process_boolean_tag 233 | } 234 | 235 | avatar_prompts = list() 236 | avatar_names = list() 237 | avatar_negatives = list() 238 | avatar_name = "" 239 | 240 | def cmdargs(line): 241 | args = shlex.split(line) 242 | args[args.index('--outpath_samples')+1] = args[args.index('--outpath_samples')+1][:-1] 243 | args[args.index('--outpath_grids')+1] = args[args.index('--outpath_grids')+1][:-1] 244 | pos = 0 245 | res = {} 246 | 247 | while pos < len(args): 248 | arg = args[pos] 249 | 250 | assert arg.startswith("--"), f'must start with "--": {arg}' 251 | tag = arg[2:] 252 | 253 | func = prompt_tags.get(tag, None) 254 | assert func, f'unknown commandline option: {arg}' 255 | 256 | assert pos+1 < len(args), f'missing argument for command line option {arg}' 257 | 258 | val = args[pos+1] 259 | 260 | res[tag] = func(val) 261 | 262 | pos += 2 263 | 264 | return res 265 | 266 | 267 | 268 | def add_param(key, value, cur_str): 269 | cur_str += '--{key} {value} '.format(key=key, value=value) 270 | return cur_str 271 | 272 | def parse_size(i_width, i_height, str_size, cur_str): 273 | i_width = str_size.split('x')[0] 274 | i_height = str_size.split('x')[1] 275 | return i_width, i_height 276 | 277 | def parse_virariant_size(str_size, cur_str): 278 | width = str_size.split('x')[0] 279 | height = str_size.split('x')[1] 280 | cur_str = add_param('seed_resize_from_w', width, cur_str) 281 | cur_str = add_param('seed_resize_from_h', height, cur_str) 282 | return cur_str 283 | 284 | def parse_param(param_str): 285 | m_batch_size = BATCH_SIZE 286 | m_n_iter = N_ITER 287 | m_steps = STEPS 288 | m_cfg_scale = CFG_SCALE 289 | m_width = WIDTH 290 | m_height = HEIGHT 291 | m_sampler_index = SAMPLER_INDEX 292 | # m_tiling = TILING 293 | m_restore_faces = RESTORE_FACE 294 | m_do_not_save_grid = DO_NOT_SAVE_GRID 295 | # m_sd_model = sd_model 296 | cur_line = "" 297 | for item in param_str.split(', '): 298 | if item == '': 299 | continue 300 | group = item.split(': ') 301 | key = group[0] 302 | value = group[1] 303 | if key == 'Steps': 304 | m_steps = value 305 | elif key == "CFG scale": 306 | m_cfg_scale = value 307 | elif key == 'Sampler': 308 | m_sampler_index = map_sampler_to_idx[value] 309 | elif key == 'Size': 310 | m_width, m_height = parse_size(m_width, m_height, value, cur_line) 311 | elif key == 'Seed resize from': 312 | cur_line = parse_virariant_size(value, cur_line) 313 | elif key == 'Seed': 314 | cur_line = add_param("seed", value, cur_line) 315 | elif key == 'Variation seed strength': 316 | cur_line = add_param("subseed_strength", value, cur_line) 317 | elif key == 'Variation seed': 318 | cur_line = add_param("subseed", value, cur_line) 319 | # elif key == 'Model hash': 320 | # cur_line = add_param("sd_model", m_sd_model, cur_line) 321 | cur_line = add_param("batch_size", m_batch_size, cur_line) 322 | cur_line = add_param("n_iter", m_n_iter, cur_line) 323 | cur_line = add_param("steps", m_steps, cur_line) 324 | cur_line = add_param("cfg_scale", m_cfg_scale, cur_line) 325 | cur_line = add_param("sampler_index", m_sampler_index, cur_line) 326 | cur_line = add_param("width", m_width, cur_line) 327 | cur_line = add_param("height", m_height, cur_line) 328 | cur_line = add_param("restore_faces", m_restore_faces, cur_line) 329 | # cur_line = add_param("tiling", m_tiling, cur_line) 330 | cur_line = add_param("do_not_save_grid", m_do_not_save_grid, cur_line) 331 | return cur_line 332 | 333 | def parse_yaml_dict(rawDict, tag, avatar_prompt, avatar_name, default_negative): 334 | # depth-first-search 335 | if 'value' in rawDict.keys() or 'negative' in rawDict.keys(): 336 | if SKIP_EXISTS: 337 | if os.path.exists(os.path.join(OUTPATH_SAMPLES, tag, avatar_name+'.png')) or os.path.exists(os.path.join(OUTPATH_SAMPLES,tag,'Not-available.png')): 338 | print("Skip "+str(tag)) 339 | return "" 340 | cur = "" 341 | parsed_param = False 342 | m_positive = avatar_prompt 343 | m_negative = default_negative 344 | for item in rawDict.items(): 345 | key = item[0] 346 | value = item[1] 347 | if key == 'param': 348 | params = parse_param(rawDict['param']) 349 | parsed_param = True 350 | elif key == 'value': 351 | m_positive = m_positive + ', ' + value 352 | elif key == 'negative': 353 | m_negative = m_negative + ', ' + value 354 | 355 | cur += "--{key} \"{value}\" ".format(key='prompt', value= m_positive) 356 | cur += "--{key} \"{value}\" ".format(key='negative_prompt', value= m_negative) 357 | 358 | if parsed_param == False: 359 | params = parse_param("") 360 | cur += params 361 | cur += '--outpath_samples \"{} \"'.format(str(os.path.join(OUTPATH_SAMPLES, str(tag), ''))) 362 | cur += ' --outpath_grids \"{} \"'.format(str(os.path.join(OUTPATH_GRIDS, str(tag), ''))) 363 | return cur 364 | else: 365 | for item in rawDict.items(): 366 | key = item[0] 367 | ret = parse_yaml_dict(rawDict[key], tag if key=='' else key, avatar_prompt, avatar_name, default_negative) 368 | if len(ret) != 0: 369 | if tag not in EXCLUDED_TAGS: 370 | OUTPUTS_DICT.append({'name': key, 371 | 'prompt': item[1]['value'] if 'value' in item[1].keys() else '', 372 | 'negative_prompt': item[1]['negative'] if 'negative' in item[1].keys() else ''}) 373 | if tag in OUTPUTS.keys(): 374 | OUTPUTS[tag].append(ret) 375 | else: 376 | OUTPUTS[tag] = [ret] 377 | return "" 378 | 379 | 380 | def rename_preview(avatar_name): 381 | if avatar_name == '': 382 | print("Please select avatar name first.") 383 | return 384 | root = OUTPATH_SAMPLES 385 | for folder in os.listdir(root): 386 | files = os.listdir(os.path.join(root, folder)) 387 | if 'Not-available.png' in files: 388 | print('Skip '+ folder + ' not available.') 389 | continue 390 | if avatar_name + '.png' in files: 391 | continue 392 | for each_avatar in avatar_names: 393 | if each_avatar + '.png' in files: 394 | files.remove(each_avatar + '.png') 395 | if len(files) == 1: 396 | os.rename(os.path.join(root, folder, files[0]), os.path.join(root, folder, avatar_name + '.png')) 397 | else: 398 | print('There are 0 or more than 1 files in ' + folder) 399 | 400 | def load_prompt_file(file): 401 | if (file is None): 402 | lines = [] 403 | else: 404 | lines = [x.strip() for x in file.decode('utf8', errors='ignore').split("\n")] 405 | 406 | return None, "\n".join(lines), gr.update(lines=7) 407 | 408 | def copy_from_prompt_app(): 409 | return [] 410 | 411 | def open_folder(f): 412 | if not os.path.exists(f): 413 | print(f'Folder "{f}" does not exist. After you create an image, the folder will be created.') 414 | return 415 | elif not os.path.isdir(f): 416 | print(f""" 417 | WARNING 418 | An open_folder request was made with an argument that is not a folder. 419 | This could be an error or a malicious attempt to run code on your computer. 420 | Requested path was: {f} 421 | """, file=sys.stderr) 422 | return 423 | 424 | if not shared.cmd_opts.hide_ui_dir_config: 425 | path = os.path.normpath(f) 426 | if platform.system() == "Windows": 427 | os.startfile(path) 428 | elif platform.system() == "Darwin": 429 | sp.Popen(["open", path]) 430 | else: 431 | sp.Popen(["xdg-open", path]) 432 | 433 | class PromptStyle(typing.NamedTuple): 434 | name: str 435 | prompt: str 436 | negative_prompt: str 437 | 438 | def save_styles() -> None: 439 | if len(OUTPUTS.keys()) == 0: 440 | return 441 | path = os.path.join('./', 'styles.csv') 442 | # Write to temporary file first, so we don't nuke the file if something goes wrong 443 | fd, temp_path = tempfile.mkstemp(".csv") 444 | with os.fdopen(fd, "a", encoding="utf-8-sig", newline='') as file: 445 | # _fields is actually part of the public API: typing.NamedTuple is a replacement for collections.NamedTuple, 446 | # and collections.NamedTuple has explicit documentation for accessing _fields. Same goes for _asdict() 447 | writer = csv.DictWriter(file, fieldnames=PromptStyle._fields) 448 | writer.writeheader() 449 | for row in OUTPUTS_DICT: 450 | writer.writerow({'name': row['name'], 'prompt': row['prompt'], 'negative_prompt': row['negative_prompt']}) 451 | # writer.writerows(style._asdict() for k, style in self.styles.items()) 452 | 453 | # Always keep a backup file around 454 | if os.path.exists(path) and not os.path.exists(path + ".bak"): 455 | shutil.move(path, path + ".bak") 456 | shutil.move(temp_path, path) 457 | 458 | def load_prompt(file, default_positive, default_negative, dropdown, skip_exist): 459 | global SKIP_EXISTS 460 | SKIP_EXISTS = skip_exist 461 | if dropdown == '' or file is None: 462 | return 463 | rawDict = yaml.load(file, Loader = yaml.BaseLoader) 464 | if len(default_positive) != 0: 465 | default_positive = avatar_prompts[avatar_names.index(dropdown)] + ', ' + default_positive 466 | else: 467 | default_positive = avatar_prompts[avatar_names.index(dropdown)] 468 | if len(default_negative) != 0: 469 | default_negative = avatar_negatives[avatar_names.index(dropdown)] + ', ' + default_negative 470 | else: 471 | default_negative = avatar_negatives[avatar_names.index(dropdown)] 472 | parse_yaml_dict(rawDict, "", default_positive, dropdown, default_negative) 473 | prompt_txt = "" 474 | keys = list(filter(lambda x: x not in EXCLUDED_TAGS, OUTPUTS.keys())) 475 | for style in keys: 476 | for each_line in OUTPUTS[style]: 477 | prompt_txt += each_line + '\n' 478 | return [prompt_txt, gr.Row.update(visible=True)] 479 | 480 | def load_avartar(avatar_dict): 481 | avatars = yaml.load(avatar_dict, yaml.BaseLoader) 482 | 483 | for name, prompt in avatars.items(): 484 | avatar_names.append(name) 485 | if 'value' in prompt.keys(): 486 | avatar_prompts.append(prompt['value']) 487 | else: 488 | avatar_prompts.append('') 489 | if 'negative' in prompt.keys(): 490 | avatar_negatives.append(prompt['negative']) 491 | else: 492 | avatar_negatives.append('') 493 | return [gr.Dropdown.update(choices=avatar_names, value=avatar_names[0]), gr.Column.update(visible=True), gr.Group.update(visible=True)] 494 | 495 | def scan_outputs(avatar_name): 496 | if avatar_name is None or len(avatar_name) == 0: 497 | print("Please select avatar name first.") 498 | return 499 | root = OUTPATH_SAMPLES 500 | global qc_dict 501 | qc_dict = {} 502 | 503 | if not os.path.exists(root): 504 | os.mkdir(root) 505 | 506 | for folder in os.listdir(root): 507 | if os.path.isdir(os.path.join(root, folder)) == False: 508 | continue 509 | 510 | files = os.listdir(os.path.join(root, folder)) 511 | if 'Not-available.png' in files: 512 | print('Skip '+ folder + ' not available.') 513 | continue 514 | if avatar_name + '.png' in files: 515 | continue 516 | for each_avatar in avatar_names: 517 | if each_avatar + '.png' in files: 518 | files.remove(each_avatar + '.png') 519 | if len(files) == 0: 520 | continue 521 | # print("Insert file:") 522 | for file in files: 523 | print(os.path.join(root, folder, file)) 524 | qc_dict[folder] = [os.path.join(root, folder, file) for file in files] 525 | 526 | if len(qc_dict.keys()) == 0: 527 | return gr.Dropdown.update(choices=[]) 528 | return gr.Dropdown.update(choices=list(qc_dict.keys()), value=list(qc_dict.keys())[0]) 529 | 530 | def update_gallery(dropdown, avatar): 531 | root = OUTPATH_SAMPLES 532 | global trg_img, current_folder 533 | current_folder = os.path.join(root, dropdown) 534 | trg_img = os.path.join(root, dropdown, avatar + '.png') 535 | # print("Detected folders:") 536 | # print(qc_dict) 537 | # print("Selected folder:") 538 | # print(dropdown) 539 | # print("Detected files:") 540 | # print(qc_dict[dropdown]) 541 | return qc_dict[dropdown] 542 | 543 | def clean_select_picture(filename): 544 | if current_folder == '': 545 | print("Please select qc tag.") 546 | return 547 | for file in os.listdir(current_folder): 548 | is_avatar = False 549 | for each_avatar in avatar_names: 550 | if each_avatar + '.png' == file: 551 | is_avatar = True 552 | break 553 | if '-' in file and file.split('.')[0] in filename: 554 | print("rename", os.path.join(current_folder, file), trg_img) 555 | os.rename(os.path.join(current_folder, file), trg_img) 556 | elif is_avatar == False: 557 | print(file, "delete", os.path.join(current_folder, file)) 558 | os.remove(os.path.join(current_folder, file)) 559 | 560 | def image_url(filedata): 561 | if type(filedata) == list: 562 | if len(filedata) == 0: 563 | return None 564 | filedata = filedata[0] 565 | # for item in filedata: 566 | # if filedata["is_file"]: 567 | # filedata = item 568 | # filename = filedata["name"] 569 | # tempdir = os.path.normpath(tempfile.gettempdir()) 570 | # normfn = os.path.normpath(filename) 571 | # assert normfn.startswith(tempdir), 'trying to open image file not in temporary directory' 572 | 573 | # image = Image.open(filename) 574 | # clean_select_picture(os.path.basename(filename)) 575 | # return Image.open(filename) 576 | if type(filedata) == dict and filedata["is_file"]: 577 | filename = filedata["name"] 578 | tempdir = os.path.normpath(tempfile.gettempdir()) 579 | normfn = os.path.normpath(filename) 580 | assert normfn.startswith(tempdir), 'trying to open image file not in temporary directory' 581 | 582 | image = Image.open(filename) 583 | clean_select_picture(os.path.basename(filename)) 584 | return Image.open(filename) 585 | 586 | elif type(filedata) == dict: 587 | print(filedata) 588 | print("Dict is not file.") 589 | return 590 | 591 | 592 | 593 | elif type(filedata) != dict and filedata.startswith("data:image/png;base64,"): 594 | filedata = filedata[len("data:image/png;base64,"):] 595 | 596 | filedata = base64.decodebytes(filedata.encode('utf-8')) 597 | image = Image.open(io.BytesIO(filedata)) 598 | return image 599 | return None 600 | 601 | 602 | def dropdown_change(): 603 | global OUTPUTS, OUTPUTS_DICT 604 | default_negative = [] 605 | OUTPUTS = {} 606 | OUTPUTS_DICT = [] 607 | return [ gr.File.update(value=None), gr.Textbox.update(value=None)] 608 | 609 | 610 | class Script(scripts.Script): 611 | def title(self): 612 | return "Prompt gallery" 613 | 614 | def ui(self, is_img2img): 615 | with gr.Group(): 616 | with gr.Column(): 617 | label_avatar = gr.Label("Upload avatars config") 618 | avatar_dict = gr.File(label="Upload avatar prompt inputs", type='bytes') 619 | 620 | # copy_from_app_button = gr.Button("Copy From Prompt Preview") 621 | 622 | with gr.Group(): 623 | with gr.Column(visible=False) as avatar_col: 624 | label_presets = gr.Label("Presets") 625 | dropdown = gr.Dropdown(label="Choose avatar", choices=[""], value="", type="value", elem_id="dropdown") 626 | dropdown.save_to_config = True 627 | with gr.Row(): 628 | checkbox_iterate = gr.Checkbox(label="Iterate seed every line", value=False) 629 | skip_exist = gr.Checkbox(value=True, label="skip exist") 630 | default_negative = gr.Textbox(label="default_negative", lines=1) 631 | default_positive = gr.Textbox(label="default_positive", lines=1) 632 | prompt_dict = gr.File(label="Upload prompt dictionary", type='bytes') 633 | with gr.Row(visible = False) as save_prompts: 634 | open_button = gr.Button("Open outputs directory") 635 | export_button = gr.Button("Export to WebUI style") 636 | prompt_display = gr.Textbox(label="List of prompt inputs", lines=1) 637 | 638 | 639 | prompt_dict.change(fn=load_prompt, inputs=[prompt_dict, default_positive, default_negative, dropdown, skip_exist], outputs=[prompt_display, save_prompts]) 640 | open_button.click(fn=lambda: open_folder(OUTPATH_SAMPLES), inputs=[], outputs=[]) 641 | export_button.click(fn=save_styles, inputs=[], outputs=[]) 642 | 643 | with gr.Group(visible=False) as qc_widgets: 644 | label_preview = gr.Label("QC preview") 645 | with gr.Row(): 646 | qc_refresh = gr.Button("QC scan") 647 | preview_dropdown = gr.Dropdown(label="Select prompts", choices=[""], value="", type="value", elem_id="dropdown") 648 | preview_gallery = gr.Gallery(label='Output', show_label=False, elem_id=f"preview_gallery").style(grid=4) 649 | qc_refresh.click(fn=scan_outputs, inputs=[dropdown], outputs=preview_dropdown) 650 | with gr.Row(): 651 | qc_show = gr.Button(f"Show pics") 652 | qc_select = gr.Button(f"Select") 653 | rename_button = gr.Button("Auto rename") 654 | selected_img = gr.Image(label="Selected",show_label=False, source="upload", interactive=True, type="pil").style(height=480) 655 | qc_show.click(fn=update_gallery, inputs=[preview_dropdown, dropdown], outputs=preview_gallery) 656 | qc_select.click( 657 | fn=lambda x: image_url(x), 658 | _js="extract_image_from_gallery", 659 | inputs=[preview_gallery], 660 | outputs=[selected_img], 661 | ) 662 | # qc_select.click(fn=select_picture, inputs=[dropdown, preview_dropdown, preview_gallery], outputs=[]) 663 | dropdown.change(fn=dropdown_change, inputs=[], outputs=[prompt_dict, prompt_display]) 664 | rename_button.click(fn=rename_preview, inputs=[dropdown], outputs=[]) 665 | # qc_select.click(fn=scan_outputs, inputs=[], outputs=[preview_dropdown]) 666 | 667 | avatar_dict.change(fn=load_avartar, inputs=[avatar_dict], outputs=[dropdown, avatar_col, qc_widgets]) 668 | return [checkbox_iterate, avatar_dict, prompt_dict, default_negative, default_positive, dropdown, prompt_display, rename_button, label_avatar, open_button, export_button, skip_exist, label_presets, label_preview, preview_dropdown, preview_gallery, qc_select, qc_refresh, qc_show, selected_img] 669 | 670 | def run(self, p, checkbox_iterate, avatar_dict, prompt_dict, default_negative, default_positive, dropdown, prompt_display, rename_button, label_avatar, open_button, export_button, skip_exist, label_presets, label_preview, preview_dropdown, preview_gallery, qc_select, qc_refresh, qc_show, selected_img): 671 | global pg_templates 672 | backup = copy.deepcopy(shared.opts) 673 | 674 | shared.opts.data.update(pg_templates) 675 | lines = [x.strip() for x in prompt_display.splitlines()] 676 | lines = [x for x in lines if len(x) > 0] 677 | 678 | p.do_not_save_grid = True 679 | 680 | job_count = 0 681 | jobs = [] 682 | 683 | for line in lines: 684 | if "--" in line: 685 | try: 686 | args = cmdargs(line) 687 | except Exception: 688 | print(f"Error parsing line [line] as commandline:", file=sys.stderr) 689 | print(traceback.format_exc(), file=sys.stderr) 690 | args = {"prompt": line} 691 | else: 692 | args = {"prompt": line} 693 | 694 | n_iter = args.get("n_iter", 1) 695 | if n_iter != 1: 696 | job_count += n_iter 697 | else: 698 | job_count += 1 699 | 700 | jobs.append(args) 701 | 702 | # print(f"Will process {len(lines)} lines in {job_count} jobs.") 703 | if (checkbox_iterate and p.seed == -1): 704 | p.seed = int(random.randrange(4294967294)) 705 | 706 | state.job_count = job_count 707 | 708 | images = [] 709 | for n, args in enumerate(jobs): 710 | state.job = f"{state.job_no + 1} out of {state.job_count}" 711 | 712 | copy_p = copy.copy(p) 713 | for k, v in args.items(): 714 | setattr(copy_p, k, v) 715 | 716 | proc = process_images(copy_p) 717 | images += proc.images 718 | 719 | if (checkbox_iterate): 720 | p.seed = p.seed + (p.batch_size * p.n_iter) 721 | 722 | OUTPUTS = {} 723 | rawDict = {} 724 | 725 | shared.opts = backup 726 | return Processed(p, images, p.seed, "") 727 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | pyyaml -------------------------------------------------------------------------------- /scripts/prompt_gallery.py: -------------------------------------------------------------------------------- 1 | import os 2 | import shutil 3 | import time 4 | import stat 5 | import gradio as gr 6 | import modules.extras 7 | import modules.ui 8 | from modules.shared import opts, cmd_opts 9 | from modules import shared, scripts 10 | from modules.paths_internal import extensions_dir 11 | from modules import script_callbacks 12 | from pathlib import Path 13 | from typing import List, Tuple 14 | import uvicorn 15 | from uvicorn import Config 16 | from fastapi import FastAPI 17 | from fastapi.staticfiles import StaticFiles 18 | import contextlib 19 | import threading 20 | import requests 21 | from fastapi.middleware.cors import CORSMiddleware 22 | import json 23 | from modules import shared 24 | from fastapi import APIRouter 25 | 26 | pg_ip = "127.0.0.1" 27 | #pg_ip = "127.0.0.1" if shared.cmd_opts.listen else 'localhost' 28 | pg_port = 5173 29 | 30 | 31 | 32 | def on_ui_settings(): 33 | global pg_ip 34 | 35 | with open(os.path.join(extensions_dir, 'prompt_gallery_name.json')) as fd: 36 | name = json.load(fd)['name'] 37 | # os.chmod('./extensions/'+name, stat.S_IRWXO) 38 | app = FastAPI() 39 | app.mount('/', StaticFiles(directory=extensions_dir+"/"+name,html=True)) 40 | config = Config(app=app, host=pg_ip,port=pg_port, log_level="info", loop="asyncio", limit_max_requests=1) 41 | app.add_middleware( 42 | CORSMiddleware, 43 | allow_origins=["*"], 44 | allow_credentials=True, 45 | allow_methods=["*"], 46 | allow_headers=["*"] 47 | ) 48 | 49 | thread = threading.Thread(target= uvicorn.run, kwargs={'app':app, 'host': pg_ip, 'port':pg_port}) 50 | thread.start() 51 | 52 | wait_time = 0 53 | if_connect =False 54 | 55 | while if_connect == False and wait_time<=6: 56 | try: 57 | tmp = requests.get("http://{}:{}".format(pg_ip, str(pg_port))) 58 | if_connect = True if int(tmp.status_code) /100 == 2. or int(tmp.status_code) /100 == 2 else False 59 | except: 60 | print(".") 61 | time.sleep(1) 62 | wait_time+=1 63 | 64 | 65 | def on_ui_tabs(): 66 | if shared.cmd_opts.theme is None or shared.cmd_opts.theme != 'dark': 67 | extension_theme = 'white' 68 | else: 69 | extension_theme = 'black' 70 | remote_webui = '127.0.0.1' 71 | if shared.cmd_opts.server_name: 72 | remote_webui = str(shared.cmd_opts.server_name) 73 | port = str(shared.cmd_opts.port) if shared.cmd_opts.port is not None else "7860" 74 | 75 | html = """ 76 | """.format(pg_ip=pg_ip, pg_port=str(pg_port), remote_webui=remote_webui, theme=extension_theme, port=port) 77 | with gr.Blocks(analytics_enabled=False, elem_id="prompt_gallery") as prompt_gallery: 78 | prompt_gallery = gr.HTML(html) 79 | 80 | return (prompt_gallery , "Prompt Gallery", "prompt_gallery"), 81 | 82 | script_callbacks.on_ui_tabs(on_ui_tabs) 83 | 84 | script_callbacks.on_ui_settings(on_ui_settings) --------------------------------------------------------------------------------