remove automatic broser opening stuff
This commit is contained in:
@@ -12,8 +12,6 @@ from typing import List, Dict
|
|||||||
import argparse
|
import argparse
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
from flask import Flask, render_template, jsonify, request
|
from flask import Flask, render_template, jsonify, request
|
||||||
import webbrowser
|
|
||||||
from threading import Timer
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
|
|
||||||
@@ -614,15 +612,8 @@ class WebInterface:
|
|||||||
# Generate HTML template
|
# Generate HTML template
|
||||||
self.create_dashboard_template(templates_dir)
|
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"\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")
|
print(f"🛑 Press Ctrl+C to stop the server\n")
|
||||||
|
|
||||||
self.app.run(host=host, port=port, debug=debug)
|
self.app.run(host=host, port=port, debug=debug)
|
||||||
|
|||||||
Reference in New Issue
Block a user