fix run class bug
This commit is contained in:
parent
3ee1e00519
commit
7285f9465b
3 changed files with 13 additions and 7 deletions
|
@ -20,6 +20,8 @@ def init_face() -> None:
|
|||
face_image = face.load_image_file(file.path)
|
||||
face_encodings.append(face.face_encodings(face_image)[0])
|
||||
|
||||
init_face()
|
||||
|
||||
@app.route('/')
|
||||
def home() -> str:
|
||||
return '<h1>Ching Chong Bing Bong Ding Dong!!</h1>'
|
||||
|
@ -59,8 +61,4 @@ def identify_face() -> str:
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
init_face()
|
||||
print(face_names)
|
||||
print(face_encodings)
|
||||
|
||||
app.run()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue