File size: 698 Bytes
0469d65
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
#!/usr/bin/env python3
"""
Quick demo of SafetyMaster Pro Gradio interface
"""

from gradio_interface import SafetyMasterGradio

def main():
    print("πŸš€ Starting SafetyMaster Pro - Gradio Demo")
    
    # Create the app
    app = SafetyMasterGradio()
    interface = app.create_interface()
    
    # Launch with demo settings
    print("🌐 Launching demo interface...")
    print("πŸ“± Open your browser to: http://localhost:7860")
    print("πŸ›‘ Press Ctrl+C to stop")
    
    interface.launch(
        server_name="127.0.0.1",  # Local only for demo
        server_port=7860,
        share=False,
        debug=True,
        show_error=True
    )

if __name__ == "__main__":
    main()