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