remove automatic broser opening stuff

This commit is contained in:
overcuriousity
2026-01-17 23:18:55 +01:00
parent e925893496
commit 1b2de520d4

View File

@@ -12,8 +12,6 @@ from typing import List, Dict
import argparse
from collections import defaultdict
from flask import Flask, render_template, jsonify, request
import webbrowser
from threading import Timer
import numpy as np
@@ -614,15 +612,8 @@ class WebInterface:
# Generate HTML template
self.create_dashboard_template(templates_dir)
# Open browser automatically
def open_browser():
webbrowser.open(f'http://{host}:{port}')
if not debug:
Timer(1.5, open_browser).start()
print(f"\n🌐 Starting web interface at http://{host}:{port}")
print(f"📊 Dashboard will open automatically in your browser")
print(f"📊 Open the above URL in your browser to view the dashboard")
print(f"🛑 Press Ctrl+C to stop the server\n")
self.app.run(host=host, port=port, debug=debug)