#!/usr/bin/env python3 """ Simple test to verify Gradio 4.20.0 compatibility """ import gradio as gr def simple_response(message, history): return "Hello! This is a test response." # Create a minimal interface def test_ui(): with gr.Blocks() as app: gr.Markdown("# Test App for Gradio 4.20.0") # Simple chatbot without type parameter chatbot = gr.Chatbot(label="Test Chat") # Input msg = gr.Textbox(placeholder="Type a message...") # Button send_btn = gr.Button("Send") # Wire up the chat send_btn.click(simple_response, [msg, chatbot], [chatbot]) return app if __name__ == "__main__": test_ui().launch()