Update main.py
Browse files
main.py
CHANGED
|
@@ -27,9 +27,9 @@ async def predict(request: Request):
|
|
| 27 |
data = json.loads(body)
|
| 28 |
|
| 29 |
source_image_base64 = data.get("source_image_base64")
|
| 30 |
-
source_face_position =
|
| 31 |
destination_image_base64 = data.get("destination_image_base64")
|
| 32 |
-
destination_face_position =
|
| 33 |
|
| 34 |
print(f"Received POST request to /predict")
|
| 35 |
print(f"Source face position: {source_face_position}")
|
|
|
|
| 27 |
data = json.loads(body)
|
| 28 |
|
| 29 |
source_image_base64 = data.get("source_image_base64")
|
| 30 |
+
source_face_position = float,
|
| 31 |
destination_image_base64 = data.get("destination_image_base64")
|
| 32 |
+
destination_face_position = float,
|
| 33 |
|
| 34 |
print(f"Received POST request to /predict")
|
| 35 |
print(f"Source face position: {source_face_position}")
|