Fancy index.html
Change-Id: Id34b142c250b0977c8ec884e335c120f2ff01cc9
diff --git a/person_detection/app.py b/person_detection/app.py
index fc0b9c7..bc72e96 100644
--- a/person_detection/app.py
+++ b/person_detection/app.py
@@ -8,6 +8,7 @@
from flask import Flask, render_template, Response
from argparse import ArgumentParser, SUPPRESS
+import config
from person_detection import Camera
@@ -16,9 +17,9 @@
@app.route('/')
def index():
+ global cameras
"""Video streaming home page."""
- return render_template('index.html', devices=[0, 1, 2, 3])
-
+ return render_template('index.html', devices=config.cameras)
def gen(camera):
"""Video streaming generator function."""