Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# Model Card for LLM-Prompt-Injection-Detection
|
| 2 |
|
| 3 |
## Model Description
|
|
@@ -35,10 +44,4 @@ tokenizer = AutoTokenizer.from_pretrained(model_name)
|
|
| 35 |
text = "Example CV text or potential prompt injection content"
|
| 36 |
inputs = tokenizer(text, return_tensors="pt")
|
| 37 |
outputs = model(**inputs)
|
| 38 |
-
prediction = outputs.logits.argmax(-1)
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
---
|
| 42 |
-
license: apache-2.0
|
| 43 |
-
library_name: transformers
|
| 44 |
-
---
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
library_name: transformers
|
| 4 |
+
language:
|
| 5 |
+
- en
|
| 6 |
+
tags:
|
| 7 |
+
- promptinjection
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
# Model Card for LLM-Prompt-Injection-Detection
|
| 11 |
|
| 12 |
## Model Description
|
|
|
|
| 44 |
text = "Example CV text or potential prompt injection content"
|
| 45 |
inputs = tokenizer(text, return_tensors="pt")
|
| 46 |
outputs = model(**inputs)
|
| 47 |
+
prediction = outputs.logits.argmax(-1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|