|
@@ -111,11 +111,13 @@ async def progress_page():
|
|
|
|
|
|
@app.post("/swapFace")
|
|
|
async def swapFace(req:swap_req):
|
|
|
- sf = swap_face(req.imgurl)
|
|
|
+ x = threading.Thread(target=runswap, args=(req.imgurl))
|
|
|
+ x.start()
|
|
|
+ return {'msg':'ok'}
|
|
|
+def runswap(imgurl):
|
|
|
+ sf = swap_face(imgurl)
|
|
|
result = sf.run()
|
|
|
#notify_group(result)
|
|
|
- print(result)
|
|
|
-
|
|
|
|
|
|
@app.post("/make_anchor_video_v2")
|
|
|
async def make_anchor_video_v2(req:request):
|