fix(index path):

This commit is contained in:
Alexander Myasoedov
2024-04-13 18:20:00 +03:00
parent 15106c1c23
commit 8b32d40b9f
2 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -41,7 +41,8 @@ app.add_middleware(
@app.get("/")
async def root():
return FileResponse("langalf/static/index.html")
langalf_path = Path(__file__).parent
return FileResponse(f"{langalf_path}/static/index.html")
class LLMInfo(BaseModel):