File size: 233 Bytes
f7197e2
 
 
 
 
 
 
1
2
3
4
5
6
7
import gradio as gr

class InputComponent:
    """Input component for the Gradio app"""
    def __init__(self, label: str, component_type: gr.Component):
        self.label = label
        self.component = component_type(label=label)