Instructions to use Hello-SimpleAI/chatgpt-detector-roberta with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Hello-SimpleAI/chatgpt-detector-roberta with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Hello-SimpleAI/chatgpt-detector-roberta")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Hello-SimpleAI/chatgpt-detector-roberta") model = AutoModelForSequenceClassification.from_pretrained("Hello-SimpleAI/chatgpt-detector-roberta") - Inference
- Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +9 -1
config.json
CHANGED
|
@@ -32,5 +32,13 @@
|
|
| 32 |
"transformers_version": "4.25.1",
|
| 33 |
"type_vocab_size": 1,
|
| 34 |
"use_cache": true,
|
| 35 |
-
"vocab_size": 50265
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
}
|
|
|
|
| 32 |
"transformers_version": "4.25.1",
|
| 33 |
"type_vocab_size": 1,
|
| 34 |
"use_cache": true,
|
| 35 |
+
"vocab_size": 50265,
|
| 36 |
+
"id2label": {
|
| 37 |
+
"0": "Human",
|
| 38 |
+
"1": "ChatGPT"
|
| 39 |
+
},
|
| 40 |
+
"label2id": {
|
| 41 |
+
"Human": 0,
|
| 42 |
+
"ChatGPT": 1
|
| 43 |
+
}
|
| 44 |
}
|