Spaces:
Running
Running
Making new corrections to extraction
Browse files- 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 =
|
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")
|