ishworrsubedii commited on
Commit
e65aa7d
1 Parent(s): 2c23f30

fix: minor endppoint issue

Browse files
Files changed (1) hide show
  1. mannequin_to_model.py +1 -1
mannequin_to_model.py CHANGED
@@ -76,7 +76,7 @@ async def mannequinToModel(
76
  return response
77
 
78
 
79
- @secure_router.get("/swap_image")
80
  async def swapImage(image_one: UploadFile = File(...), ref_face: UploadFile = File(...)):
81
  image_one, ref_face = await image_one.read(), await ref_face.read()
82
  image_one_, ref_face_ = Image.open(BytesIO(image_one)), Image.open(BytesIO(ref_face))
 
76
  return response
77
 
78
 
79
+ @secure_router.post("/swap_image")
80
  async def swapImage(image_one: UploadFile = File(...), ref_face: UploadFile = File(...)):
81
  image_one, ref_face = await image_one.read(), await ref_face.read()
82
  image_one_, ref_face_ = Image.open(BytesIO(image_one)), Image.open(BytesIO(ref_face))