|
@@ -111,7 +111,7 @@ async def progress_page():
|
|
|
|
|
|
@app.post("/swapFace")
|
|
@app.post("/swapFace")
|
|
async def swapFace(req:swap_req):
|
|
async def swapFace(req:swap_req):
|
|
- x = threading.Thread(target=runswap, args=(str(req.imgurl)))
|
|
|
|
|
|
+ x = threading.Thread(target=runswap, arg=(req.imgurl))
|
|
x.start()
|
|
x.start()
|
|
return {'msg':'ok'}
|
|
return {'msg':'ok'}
|
|
|
|
|