Testys commited on
Commit
ef3f51e
·
1 Parent(s): 59df897

Making new corrections to extraction

Browse files
Files changed (1) hide show
  1. users/routes.py +1 -1
users/routes.py CHANGED
@@ -95,7 +95,7 @@ async def face_login(file: UploadFile = File(...), db: Session = Depends(get_db)
95
  temp_file.flush()
96
  image_path = temp_file.name
97
 
98
- embeddings = await face_processor.extract_embeddings_vgg(image_path)
99
  if not embeddings:
100
  os.remove(image_path)
101
  raise HTTPException(status_code=400, detail="Failed to process face")
 
95
  temp_file.flush()
96
  image_path = temp_file.name
97
 
98
+ embeddings = face_processor.extract_embeddings_vgg(image_path)
99
  if not embeddings:
100
  os.remove(image_path)
101
  raise HTTPException(status_code=400, detail="Failed to process face")