File size: 926 Bytes
bffbc7a
174e0f0
322b74c
174e0f0
 
bffbc7a
174e0f0
 
322b74c
174e0f0
 
322b74c
174e0f0
 
322b74c
 
174e0f0
 
 
 
bffbc7a
174e0f0
 
bffbc7a
174e0f0
 
 
 
 
 
 
bffbc7a
322b74c
 
 
174e0f0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
"""
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()