Use the gr.HTML() component:
gr.HTML()
with gr.Blocks() as demo: title = gr.HTML("<h1>Dataset Explorer</h1>") ...