diff --git a/src/web/app.py b/src/web/app.py index 9fb4166..66df2f3 100644 --- a/src/web/app.py +++ b/src/web/app.py @@ -29,8 +29,9 @@ state = { @app.route('/') -def index(): - return render_template('index.html') +@app.route('/') +def index(tab='detection'): + return render_template('index.html', active_tab=tab) @app.route('/frame/') diff --git a/src/web/templates/index.html b/src/web/templates/index.html index 5b4c175..137c170 100644 --- a/src/web/templates/index.html +++ b/src/web/templates/index.html @@ -367,7 +367,7 @@