Spaces:
Sleeping
Sleeping
Commit ·
52d1a9a
1
Parent(s): 7f188aa
Update main.py
Browse files
main.py
CHANGED
|
@@ -120,6 +120,7 @@ def get_frames():
|
|
| 120 |
|
| 121 |
for frame in frames:
|
| 122 |
frames_data.append({
|
|
|
|
| 123 |
'frame_data': frame.frame_data.decode('latin1'),
|
| 124 |
'count_of_people': frame.count_of_people
|
| 125 |
})
|
|
@@ -129,4 +130,4 @@ def get_frames():
|
|
| 129 |
if __name__ == '__main__':
|
| 130 |
with app.app_context():
|
| 131 |
create_database()
|
| 132 |
-
|
|
|
|
| 120 |
|
| 121 |
for frame in frames:
|
| 122 |
frames_data.append({
|
| 123 |
+
'id': frame.id,
|
| 124 |
'frame_data': frame.frame_data.decode('latin1'),
|
| 125 |
'count_of_people': frame.count_of_people
|
| 126 |
})
|
|
|
|
| 130 |
if __name__ == '__main__':
|
| 131 |
with app.app_context():
|
| 132 |
create_database()
|
| 133 |
+
app.run(debug=True)
|