Update README.md
Browse files
README.md
CHANGED
@@ -68,13 +68,10 @@ This model should NOT be used to:
|
|
68 |
## Usage Examples
|
69 |
|
70 |
```python
|
71 |
-
from transformers import AutoTokenizer, AutoModel
|
72 |
-
import torch
|
73 |
-
import numpy as np
|
74 |
-
|
75 |
# Load model and tokenizer
|
76 |
from transformers import RobertaTokenizer, AutoModelForSequenceClassification
|
77 |
import torch
|
|
|
78 |
|
79 |
def predict_with_huggingface_model(text, repo_id="prasoonmhwr/ai_detection_model", device="cuda"):
|
80 |
"""
|
|
|
68 |
## Usage Examples
|
69 |
|
70 |
```python
|
|
|
|
|
|
|
|
|
71 |
# Load model and tokenizer
|
72 |
from transformers import RobertaTokenizer, AutoModelForSequenceClassification
|
73 |
import torch
|
74 |
+
import numpy as np
|
75 |
|
76 |
def predict_with_huggingface_model(text, repo_id="prasoonmhwr/ai_detection_model", device="cuda"):
|
77 |
"""
|