|
@@ -98,7 +98,7 @@ async def swapFace(req:swap_req):
|
|
|
im = Image.open(requests.get(req.imgurl, stream=True).raw)
|
|
|
im= im.convert("RGB")
|
|
|
im.save(tmp_src_face+name_hash+'.jpg')
|
|
|
- x = threading.Thread(target=gen_avatar, args=(name_hash))
|
|
|
+ x = threading.Thread(target=gen_avatar, args=(str(name_hash)))
|
|
|
x.start()
|
|
|
return {'msg':'人物生成中,請稍候'}
|
|
|
|