Ashrafb commited on
Commit
fc25ef2
·
verified ·
1 Parent(s): ca25729

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
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 = int(data.get("source_face_position"))
31
  destination_image_base64 = data.get("destination_image_base64")
32
- destination_face_position = int(data.get("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}")