import gradio as gr def chatbot(message, history): # This is a simple echo bot for demonstration # In a real scenario, you'd integrate with a language model here return f"Bot: You said: {message}" # Create the Gradio interface iface = gr.ChatInterface( fn=chatbot, title="Simple Chatbot", description="This is a simple echo chatbot. Type a message and the bot will respond.", ) # Launch the interface iface.launch()