From 8b32d40b9fb3dd9aa52f40c0b45bc1597f1085f8 Mon Sep 17 00:00:00 2001 From: Alexander Myasoedov Date: Sat, 13 Apr 2024 18:20:00 +0300 Subject: [PATCH] fix(index path): --- langalf/app.py | 3 ++- pyproject.toml | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/langalf/app.py b/langalf/app.py index de00953..9127949 100644 --- a/langalf/app.py +++ b/langalf/app.py @@ -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): diff --git a/pyproject.toml b/pyproject.toml index 6fbf118..64c2b3d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "langalf" -version = "0.0.1" +version = "0.0.2" description = "Agentic LLM vulnerability scanner" authors = ["Alexander Miasoiedov "] maintainers = ["Alexander Miasoiedov "] @@ -10,12 +10,13 @@ readme = "Readme.md" keywords = [ "LLM vulnerability scanner", "llm security", - "adversarial attacks", + "llm adversarial attacks", "prompt injection", "prompt leakage", "prompt injection attacks", "prompt leakage prevention", "llm vulnerabilities", + "owasp-llm-top-10", ] packages = [{ include = "langalf", from = "." }]