Sandeep commited on
Commit
687623b
·
1 Parent(s): 3f5e177

API-only deployment - skip Gradio UI

Browse files
Files changed (2) hide show
  1. README.md +3 -13
  2. app.py +5 -0
README.md CHANGED
@@ -3,20 +3,10 @@ title: Agent Shield
3
  emoji: 🛡️
4
  colorFrom: blue
5
  colorTo: purple
6
- sdk: gradio
7
- sdk_version: 4.0.0
8
- app_file: ui.py
9
  pinned: false
10
  ---
11
 
12
  # Agent Shield
13
-
14
- LLM Prompt Injection Detection Engine.
15
-
16
- **Layers:**
17
- - L0: Unicode normalization
18
- - L1: Vigil regex scanner
19
- - L2: DistilBERT classifier (93% accuracy)
20
- - L3: Guardrails AI (PII + toxic detection)
21
-
22
- **Deploy:** https://huggingface.co/spaces/Sandeep120205/agent-shield
 
3
  emoji: 🛡️
4
  colorFrom: blue
5
  colorTo: purple
6
+ sdk: docker
7
+ app_file: app.py
 
8
  pinned: false
9
  ---
10
 
11
  # Agent Shield
12
+ LLM Prompt Injection Detection - L0-L3 Stack
 
 
 
 
 
 
 
 
 
app.py ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ from api.main import app
2
+
3
+ if __name__ == "__main__":
4
+ import uvicorn
5
+ uvicorn.run(app, host="0.0.0.0", port=7860)