Ver Fonte

fix gen avatar

ming há 3 anos atrás
pai
commit
d99ba39554
1 ficheiros alterados com 2 adições e 2 exclusões
  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):