import gradio as gr def my_chatbot(message): return "Hello, " + message # bind it to gradio interface = gr.Interface(fn = my_chatbot, title = "Hello, Gradio!", inputs = "text", outputs = "text") interface.launch()