@@ -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):