Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pr_qc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
python-version: 3.13
- name: Run qa
run: |
make dev
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ jobs:
- name: Build & Deploy
uses: guardrails-ai/guardrails/.github/actions/validator_pypi_publish@main
with:
guardrails_token: ${{ secrets.GR_GUARDRAILS_TOKEN }}
guardrails_token: ${{ secrets.PRIV_PYPI_PUBLISH_TOKEN }}
validator_id: guardrails/detect_pii
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "detect_pii"
version = "0.0.5"
version = "0.0.6"
description = "Validates that any text does not contain any PII."
authors = [
{name = "Guardrails AI", email = "[email protected]"}
Expand All @@ -11,7 +11,7 @@ requires-python = ">= 3.8.1"
dependencies = [
"presidio-analyzer~=2.2",
"presidio-anonymizer~=2.2",
"numpy<2.0.0",
"numpy",
"guardrails-ai>=0.4.0",
"nltk>=3.8.1,<4.0.0"
]
Expand Down
2 changes: 1 addition & 1 deletion validator/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,5 +219,5 @@ def _inference_remote(self, model_input: Any) -> Any:
}
]
}
response = self._hub_inference_request(json.dumps(request_body), self.validation_endpoint)
response = self._hub_inference_request(json.dumps(request_body), self.validation_endpoint) # type: ignore
return response["outputs"][0]["data"][0]