cybercentinel commited on
Commit
03d6be7
·
verified ·
1 Parent(s): f2d4d80

Upload 3 files

Browse files
Files changed (3) hide show
  1. README.md +24 -12
  2. app.py +31 -0
  3. requirements.txt +2 -0
README.md CHANGED
@@ -1,12 +1,24 @@
1
- ---
2
- title: Sentitrust Toolkit
3
- emoji: 📊
4
- colorFrom: yellow
5
- colorTo: blue
6
- sdk: gradio
7
- sdk_version: 5.49.1
8
- app_file: app.py
9
- pinned: false
10
- ---
11
-
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: SentiTrust AI Security Toolkit
3
+ emoji: 🛡️
4
+ colorFrom: red
5
+ colorTo: gray
6
+ sdk: gradio
7
+ sdk_version: 4.19.0
8
+ app_file: app.py
9
+ pinned: false
10
+ ---
11
+
12
+ # 🛡️ SentiTrust AI Red-Teaming Toolkit
13
+
14
+ Professional AI security testing platform.
15
+
16
+ ## Features
17
+ - Jailbreak Testing
18
+ - Prompt Injection Detection
19
+ - Vulnerability Classification
20
+ - Professional Reporting
21
+
22
+ ## Links
23
+ - Website: https://sentitrust.adogent.com
24
+ - Book Free Scan: https://calendly.com/sentitrust/free-security-scan
app.py ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import sys
3
+ from pathlib import Path
4
+ from huggingface_hub import snapshot_download
5
+ import importlib.util
6
+
7
+ PRIVATE_REPO = "cybercentinel/ai-red-teaming"
8
+ CACHE = Path("cache")
9
+
10
+ def load_toolkit():
11
+ try:
12
+ print("Loading...")
13
+ CACHE.mkdir(exist_ok=True)
14
+ snapshot_download(
15
+ repo_id=PRIVATE_REPO,
16
+ repo_type="space",
17
+ local_dir=CACHE,
18
+ token=os.environ.get("HF_TOKEN")
19
+ )
20
+ sys.path.insert(0, str(CACHE))
21
+ spec = importlib.util.spec_from_file_location("app", CACHE / "app.py")
22
+ app = importlib.util.module_from_spec(spec)
23
+ spec.loader.exec_module(app)
24
+ except Exception as e:
25
+ import gradio as gr
26
+ with gr.Blocks() as demo:
27
+ gr.Markdown(f"Error: {e}")
28
+ demo.launch()
29
+
30
+ if __name__ == "__main__":
31
+ load_toolkit()
requirements.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ gradio==4.19.0
2
+ huggingface-hub>=0.20.0