12345678910import gradio as grchatbot = gr.ChatInterface()chatbot.launch() def echo (message, history): chatbot = gr.ChatInterface(echo) chatbot.launch # repeats messages.