import gradio as gr def greet(name): return "Hello " + name + "! aaaaaaaa !" def echo(message, history): return message app = gr.Interface(fn=greet, inputs="text", outputs="text") app = gr.ChatInterface(fn=echo, examples=["hello", "hola", "merhaba"], title="Echo Bot") app.launch(share=True)