How do I create a complete Gradio chatbot interface with working code?
user
Here's a complete Gradio chatbot interface with working code:

```python
import gradio as gr

def chatbot_response(message, history):
    # Simple echo chatbot - replace with your AI model
    response = f"You said: {message}"
    history.append((message, response))
    return history, ""

with gr.Blocks() as demo:
    gr.Markdown("# My Gradio Chatbot")
    
    chatbot = gr.Chatbot(
        value=[],
        height=400,
        show_copy_button=True
    )
    
    msg = gr.Textbox(
        placeholder="Type your message here...",
        container=False,
        scale=7
    )
    
    clear = gr.Button("Clear Chat")
    
    msg.submit(chatbot_response, [msg, chatbot], [chatbot, msg])
    clear.click(lambda: ([], ""), outputs=[chatbot, msg])

demo.launch()
```

This creates a fully functional chatbot with message history, input handling, and a clear button.
assistant