import gradio as gr def greet(name): return "Hello " + name + "!!" def greet_interface(): iface = gr.Interface(fn=greet, inputs="text", outputs="text") iface.launch() if __name__ == "__main__": greet_interface()