|
@@ -96,7 +96,7 @@ async def swapFace(req:swap_req):
|
|
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 '人物生成中,請稍候'
|
|
|
|
|
|
+ return {'msg':'人物生成中,請稍候'}
|
|
|
|
|
|
@app.post("/uploadfile/")
|
|
@app.post("/uploadfile/")
|
|
async def create_upload_file(file: UploadFile = File(...)):
|
|
async def create_upload_file(file: UploadFile = File(...)):
|