import gradio as gr class OutputComponent: def __init__(self): self.component = gr.Textbox(label="Output") def set_value(self, value): self.component.value = value