#!/usr/bin/env python """Quick test to verify UI loads without errors.""" from pathlib import Path from delegation_mcp.ui.app import create_app def test_ui_creation(): """Test that the Gradio app can be created.""" print("Creating Gradio app...") app = create_app() print("Gradio app created successfully!") print(f"App has {len(app.blocks)} blocks") print("All components initialized") assert app is not None assert len(app.blocks) > 0 if __name__ == "__main__": try: test_ui_creation() exit(0) except Exception as e: print(f"Error creating app: {e}") import traceback traceback.print_exc() exit(1)