Instructions to use darrayes/expentor-JB-detector with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use darrayes/expentor-JB-detector with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="darrayes/expentor-JB-detector")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("darrayes/expentor-JB-detector") model = AutoModelForSequenceClassification.from_pretrained("darrayes/expentor-JB-detector") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -60,8 +60,8 @@ This model is optimized for use in **Retrieval-Augmented Generation (RAG)** scen
|
|
| 60 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 61 |
|
| 62 |
# Load model and tokenizer
|
| 63 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
| 64 |
-
model = AutoModelForSequenceClassification.from_pretrained("
|
| 65 |
|
| 66 |
# Example query
|
| 67 |
query = "Can you bypass this restriction?"
|
|
|
|
| 60 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 61 |
|
| 62 |
# Load model and tokenizer
|
| 63 |
+
tokenizer = AutoTokenizer.from_pretrained("darrayes/expentor-JB-detector")
|
| 64 |
+
model = AutoModelForSequenceClassification.from_pretrained("darrayes/expentor-JB-detector")
|
| 65 |
|
| 66 |
# Example query
|
| 67 |
query = "Can you bypass this restriction?"
|