diff --git a/modules/ui.py b/modules/ui.py index 3504953..9fea288 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -159,7 +159,7 @@ def apply_interface_values(state, use_persistent=False): return [state[k] if k in state else gr.update() for k in elements] -class ToolButton(gr.Button, gr.components.FormComponent): +class ToolButton(gr.Button, gr.components.IOComponent): """Small button with single emoji as text, fits inside gradio forms""" def __init__(self, **kwargs):