aboutsummaryrefslogtreecommitdiff
path: root/modules/ui_components.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2023-01-07 09:56:37 +0300
committerAUTOMATIC <16777216c@gmail.com>2023-01-07 09:56:37 +0300
commit1a5b86ad65fd738eadea1ad72f4abad3a4aabf17 (patch)
treee13d72ac53340633350f84524c3938f681ff9c3e /modules/ui_components.py
parentde9738044571877450d1038e18f1ecce93d24af3 (diff)
rework hires fix preview for #6437: movie it to where it takes less place, make it actually account for all relevant sliders and calculate dimensions correctly
Diffstat (limited to 'modules/ui_components.py')
-rw-r--r--modules/ui_components.py8
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"
+