File size: 442 Bytes
37c870e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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()