mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-06 02:30:30 -08:00
rework extras tab to use script system
This commit is contained in:
parent
68303c96e5
commit
b5230197a6
13 changed files with 670 additions and 459 deletions
|
|
@ -1,5 +1,3 @@
|
|||
import html
|
||||
|
||||
import gradio as gr
|
||||
|
||||
|
||||
|
|
@ -50,7 +48,3 @@ class FormColorPicker(gr.ColorPicker, gr.components.FormComponent):
|
|||
def get_block_name(self):
|
||||
return "colorpicker"
|
||||
|
||||
|
||||
def plaintext_to_html(text):
|
||||
text = "<p>" + "<br>\n".join([f"{html.escape(x)}" for x in text.split('\n')]) + "</p>"
|
||||
return text
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue