#!/usr/bin/env python3 """ Basic test to check if the app can initialize """ import gradio as gr def create_simple_app(): """Create a minimal app to test basic functionality""" with gr.Blocks(title="Test App") as app: gr.Markdown("# ๐Ÿงช Basic Test App") gr.Markdown("If you can see this, the basic setup works!") test_input = gr.Textbox(label="Test Input", placeholder="Type something...") test_output = gr.Textbox(label="Test Output") test_button = gr.Button("Test Button") def test_function(text): return f"Echo: {text}" test_button.click(test_function, inputs=[test_input], outputs=[test_output]) return app if __name__ == "__main__": print("๐Ÿงช Creating basic test app...") app = create_simple_app() print("โœ… App created successfully") # Test with authentication auth_credentials = [("test", "test123")] print("๐Ÿš€ Launching with authentication...") app.launch( auth=auth_credentials, auth_message="Test login: username 'test', password 'test123'", server_name="0.0.0.0", server_port=7860, share=False )