diff --git a/agentic_security/routes/scan.py b/agentic_security/routes/scan.py index 968af36..7d460b7 100644 --- a/agentic_security/routes/scan.py +++ b/agentic_security/routes/scan.py @@ -64,7 +64,7 @@ async def scan_csv( enableMultiStepAttack: bool = Query(False), ): # TODO: content dataset to fuzzer - content = await file.read() + content = await file.read() # noqa llm_spec = await llmSpec.read() scan_parameters = Scan( diff --git a/agentic_security/routes/test_csv.py b/agentic_security/routes/test_csv.py index 634e446..e48fcd2 100644 --- a/agentic_security/routes/test_csv.py +++ b/agentic_security/routes/test_csv.py @@ -1,6 +1,7 @@ +from fastapi.testclient import TestClient + import agentic_security.test_spec_assets as test_spec_assets from agentic_security.routes.scan import router -from fastapi.testclient import TestClient client = TestClient(router) diff --git a/poetry.lock b/poetry.lock index 2be5d0b..66d63ab 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 1.8.5 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.7.1 and should not be changed by hand. [[package]] name = "aiohappyeyeballs" @@ -1055,6 +1055,25 @@ python-dateutil = ">=2.8.1" [package.extras] dev = ["flake8", "markdown", "twine", "wheel"] +[[package]] +name = "gtts" +version = "2.5.4" +description = "gTTS (Google Text-to-Speech), a Python library and CLI tool to interface with Google Translate text-to-speech API" +optional = false +python-versions = ">=3.7" +files = [ + {file = "gTTS-2.5.4-py3-none-any.whl", hash = "sha256:5dd579377f9f5546893bc26315ab1f846933dc27a054764b168f141065ca8436"}, + {file = "gtts-2.5.4.tar.gz", hash = "sha256:f5737b585f6442f677dbe8773424fd50697c75bdf3e36443585e30a8d48c1884"}, +] + +[package.dependencies] +click = ">=7.1,<8.2" +requests = ">=2.27,<3" + +[package.extras] +docs = ["sphinx", "sphinx-autobuild", "sphinx-click", "sphinx-mdinclude", "sphinx-rtd-theme"] +tests = ["pytest (>=7.1.3,<8.4.0)", "pytest-cov", "testfixtures"] + [[package]] name = "h11" version = "0.14.0" @@ -4365,4 +4384,4 @@ propcache = ">=0.2.0" [metadata] lock-version = "2.0" python-versions = "^3.11" -content-hash = "211d8b41dfd43afee62345619497bd7b6b64dad2b39ad2013c47beafd3f0a26b" +content-hash = "d20462abe4f8e14e261d9a6b4801d127d573575173898583f163737d587710aa" diff --git a/pyproject.toml b/pyproject.toml index 5be3817..41e0bc4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,6 +47,7 @@ jinja2 = "^3.1.4" python-multipart = "^0.0.20" tomli = "^2.2.1" rich = "13.9.4" +gTTS = "^2.5.4" # garak = { version = "*", optional = true }