import gradio as gr class TextInputComponent: def __init__(self): self.component = gr.Textbox(label="Text Input") def get_value(self): return self.component.value