import gradio as gr demo = gr.Interface( fn=lambda: "Hello World", inputs=None, outputs="text", title="Hello World" ) demo.launch()