@@ -93,6 +93,7 @@ async def swapFace(req:swap_req):
im= im.convert("RGB")
except:
return {'msg':"無法辨別圖片網址"+req.imgurl}
+ name_hash = str(time.time()).replace('.','')
x = threading.Thread(target=gen_avatar, args=(name_hash,req.imgurl))
x.start()
return '人物生成中,請稍候'