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