Explorar el Código

add swap face test

ming hace 3 años
padre
commit
eaa6e31d8c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      main.py

+ 1 - 1
main.py

@@ -111,7 +111,7 @@ async def progress_page():
 
 @app.post("/swapFace")
 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()
     return {'msg':'ok'}