-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
31 lines (25 loc) · 901 Bytes
/
Copy pathmain.py
File metadata and controls
31 lines (25 loc) · 901 Bytes
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
"""
IdentityAI - Offline Identity Threat Detection System
Main entry point - launches the web interface
"""
import webbrowser
import threading
from app import app
def open_browser():
"""Open the default browser after a short delay"""
webbrowser.open('http://localhost:5000')
def main():
"""Start the IdentityAI web server and open browser"""
print("=" * 60)
print("🔒 IdentityAI - Offline Identity Threat Detection")
print("=" * 60)
print("🌐 Starting web server at: http://localhost:5000")
print("💡 Your browser will open automatically...")
print("🛑 Press Ctrl+C to stop the server")
print("=" * 60)
# Open browser after a short delay to let the server start
threading.Timer(1.5, open_browser).start()
# Start the Flask server
app.run(debug=False, host='0.0.0.0', port=5000, threaded=True)
if __name__ == '__main__':
main()