import gradio as gr str = """hello newline newline""" with gr.Blocks() as demo: with gr.Tab(): gr.Textbox(value=str) with gr.Tab(): gr.Textbox(value=str) demo.launch()