change color selector in settings to be part of form

This commit is contained in:
AUTOMATIC
2023-01-10 23:47:02 +03:00
parent 2bd2b8b7cf
commit 29fb532764
2 changed files with 8 additions and 2 deletions

View File

@@ -31,3 +31,9 @@ class FormHTML(gr.HTML, gr.components.FormComponent):
def get_block_name(self):
return "html"
class FormColorPicker(gr.ColorPicker, gr.components.FormComponent):
"""Same as gr.ColorPicker but fits inside gradio forms"""
def get_block_name(self):
return "colorpicker"