Browse Source

fix gen avatar

ming 3 năm trước cách đây
mục cha
commit
d99ba39554
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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):