From 1f584e3c4820f030d8ddae7021241dcc749b7607 Mon Sep 17 00:00:00 2001 From: cookieshop02 Date: Tue, 25 Aug 2026 02:17:48 +0530 Subject: [PATCH 1/2] docs: replaced remaining Guard.with_tiny() references with Guard(model='tiny') Closes #148 --- CONTRIBUTING.md | 2 +- assets/hf-org-card/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9004edd..c298068 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -18,7 +18,7 @@ uv sync --dev | Extra | Enables | |-------|---------| -| `ml` | ML span model (`Guard.with_tiny()`) | +| `ml` | ML span model (`Guard(model="tiny")`) | | `yara` | YARA code/SQLi/XSS scanner | | `presidio` | Presidio PII scanner | | `litellm` | LLM judge for borderline cases | diff --git a/assets/hf-org-card/README.md b/assets/hf-org-card/README.md index ce6c61e..9e176aa 100644 --- a/assets/hf-org-card/README.md +++ b/assets/hf-org-card/README.md @@ -36,7 +36,7 @@ pip install "unplug-ai[ml]" ```python from unplug import Guard -guard = Guard.with_tiny() # auto-downloads unplug-tiny-v1 +guard = Guard(model="tiny") # auto-downloads unplug-tiny-v1 result = guard.scan(untrusted_text) if not result.safe: use(result.redacted_text) # attack removed, content preserved From 94fb896e1b6cd00a527a038e76d66c135c65f31a Mon Sep 17 00:00:00 2001 From: cookieshop02 Date: Tue, 25 Aug 2026 02:38:56 +0530 Subject: [PATCH 2/2] fix: preserved auto-download in hf-org-card quickstart --- assets/hf-org-card/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/hf-org-card/README.md b/assets/hf-org-card/README.md index 9e176aa..13d837d 100644 --- a/assets/hf-org-card/README.md +++ b/assets/hf-org-card/README.md @@ -36,7 +36,7 @@ pip install "unplug-ai[ml]" ```python from unplug import Guard -guard = Guard(model="tiny") # auto-downloads unplug-tiny-v1 +guard = Guard(model="tiny",auto_download_model=True) # auto-downloads unplug-tiny-v1 result = guard.scan(untrusted_text) if not result.safe: use(result.redacted_text) # attack removed, content preserved