""" Optimized Modius Agent Performance Dashboard - Main Application Entry Point This is the refactored version of the original app.py with improved modularity, maintainability, and performance. """ import os import sys # Add the modius_performance package to the path sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) from modius_performance.utils.logging_config import setup_logging from modius_performance.ui.dashboard import create_dashboard def main(): """Main application entry point.""" # Set up logging setup_logging() # Create and launch the dashboard dashboard = create_dashboard() # Launch the application with automatic port selection dashboard.launch( server_name="0.0.0.0", server_port=None, # Let Gradio find an available port share=False, debug=False, show_error=True ) if __name__ == "__main__": main()