Explorar el Código

fix gen avatar

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

+ 2 - 2
api/main.py

@@ -67,8 +67,8 @@ async def index2():
     return FileResponse('static/index2.html')
 
 @app.get("/gen_avatar")
-async def index2():
-    return FileResponse('gen_avatar.html')
+async def gen_avatar():
+    return FileResponse('static/gen_avatar.html')
 
 @app.post("/swapFace")
 async def swapFace(req:swap_req):