Update FastAPI.py
Browse files- FastAPI.py +2 -2
FastAPI.py
CHANGED
|
@@ -82,10 +82,10 @@ def recognize_face(image_url: HttpUrl) -> ImgOutput:
|
|
| 82 |
os.remove("examp.jpg")
|
| 83 |
|
| 84 |
if output_labels:
|
| 85 |
-
return ImgOutput(
|
| 86 |
else:
|
| 87 |
out = ["unable to detect"]
|
| 88 |
-
return ImgOutput(
|
| 89 |
|
| 90 |
|
| 91 |
|
|
|
|
| 82 |
os.remove("examp.jpg")
|
| 83 |
|
| 84 |
if output_labels:
|
| 85 |
+
return ImgOutput(user_id=output_labels)
|
| 86 |
else:
|
| 87 |
out = ["unable to detect"]
|
| 88 |
+
return ImgOutput(user_id=out)
|
| 89 |
|
| 90 |
|
| 91 |
|