import gradio as gr def update(smiles): x = ( """ """ ) return f"""""" with gr.Blocks() as demo: gr.Markdown("# Smiles viewer") with gr.Row(): inp = gr.Textbox(label="SMILES string", placeholder="CCCC") out = gr.HTML() btn = gr.Button("Run") btn.click(fn=update, inputs=inp, outputs=out) demo.launch()