Spaces:
Sleeping
Sleeping
Commit
·
9fbbf40
1
Parent(s):
0333ac8
Update main.py
Browse files
main.py
CHANGED
@@ -21,7 +21,6 @@ def create_database():
|
|
21 |
with app.app_context():
|
22 |
db.create_all()
|
23 |
|
24 |
-
|
25 |
def draw_faces(im, bboxes):
|
26 |
for bbox in bboxes:
|
27 |
x0, y0, x1, y1 = [int(_) for _ in bbox]
|
@@ -91,5 +90,6 @@ def get_frames():
|
|
91 |
return jsonify(frames_data)
|
92 |
|
93 |
if __name__ == '__main__':
|
94 |
-
|
95 |
-
|
|
|
|
21 |
with app.app_context():
|
22 |
db.create_all()
|
23 |
|
|
|
24 |
def draw_faces(im, bboxes):
|
25 |
for bbox in bboxes:
|
26 |
x0, y0, x1, y1 = [int(_) for _ in bbox]
|
|
|
90 |
return jsonify(frames_data)
|
91 |
|
92 |
if __name__ == '__main__':
|
93 |
+
with app.app_context():
|
94 |
+
create_database()
|
95 |
+
app.run(debug=True)
|