import gradio as gr def say_hello(): return "Hello World!" interface = gr.Interface(fn=say_hello, inputs=None, outputs="text") interface.launch()