diff options
author | noodleanon <122053346+noodleanon@users.noreply.github.com> | 2023-01-07 14:18:09 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-07 14:18:09 +0000 |
commit | 50e25362794d46cd9a55c70e953a8b4126fd42f7 (patch) | |
tree | ea528f29a7c967de32f08217c50d994eebb277b3 /modules/ui_components.py | |
parent | eadd1bf06adbd7263875640a6446d3b0184d1561 (diff) | |
parent | 151233399c4b79934bdbb7c12a97eeb6499572fb (diff) |
Merge branch 'AUTOMATIC1111:master' into img2img-api-scripts
Diffstat (limited to 'modules/ui_components.py')
-rw-r--r-- | modules/ui_components.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/ui_components.py b/modules/ui_components.py index 91eb0e3d..cac001dc 100644 --- a/modules/ui_components.py +++ b/modules/ui_components.py @@ -23,3 +23,11 @@ class FormGroup(gr.Group, gr.components.FormComponent): def get_block_name(self):
return "group"
+
+
+class FormHTML(gr.HTML, gr.components.FormComponent):
+ """Same as gr.HTML but fits inside gradio forms"""
+
+ def get_block_name(self):
+ return "html"
+
|