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):
+3 -2
View File
@@ -1,6 +1,6 @@
[tool.poetry]
name = "langalf"
version = "0.0.1"
version = "0.0.2"
description = "Agentic LLM vulnerability scanner"
authors = ["Alexander Miasoiedov <msoedov@gmail.com>"]
maintainers = ["Alexander Miasoiedov <msoedov@gmail.com>"]
@@ -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 = "." }]