diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-01-23 06:24:43 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-01-23 06:24:43 +0000 |
commit | b5230197a69d36a79fdc4919c59a03e00e872dd3 (patch) | |
tree | 05f238653fd8fb48d736e98ad69ef4b482764347 /modules/ui_components.py | |
parent | 68303c96e5ab31576a8238a24bf5b6191cf16ed1 (diff) | |
download | stable-diffusion-webui-gfx803-b5230197a69d36a79fdc4919c59a03e00e872dd3.tar.gz stable-diffusion-webui-gfx803-b5230197a69d36a79fdc4919c59a03e00e872dd3.tar.bz2 stable-diffusion-webui-gfx803-b5230197a69d36a79fdc4919c59a03e00e872dd3.zip |
rework extras tab to use script system
Diffstat (limited to 'modules/ui_components.py')
-rw-r--r-- | modules/ui_components.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/modules/ui_components.py b/modules/ui_components.py index 989cc87b..9aec3097 100644 --- a/modules/ui_components.py +++ b/modules/ui_components.py @@ -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
|