Update README.md
Browse files
README.md
CHANGED
|
@@ -13,14 +13,11 @@ exaple usage:
|
|
| 13 |
```python
|
| 14 |
import moderation #From files this project
|
| 15 |
|
| 16 |
-
|
| 17 |
# Load model
|
| 18 |
-
|
| 19 |
moderation = ModerationModel()
|
| 20 |
moderation.load_state_dict(torch.load('moderation_model.pth'))
|
| 21 |
|
| 22 |
# Test text
|
| 23 |
-
|
| 24 |
text = "I want to kill them."
|
| 25 |
|
| 26 |
embeddings_for_prediction = getEmb(text)
|
|
|
|
| 13 |
```python
|
| 14 |
import moderation #From files this project
|
| 15 |
|
|
|
|
| 16 |
# Load model
|
|
|
|
| 17 |
moderation = ModerationModel()
|
| 18 |
moderation.load_state_dict(torch.load('moderation_model.pth'))
|
| 19 |
|
| 20 |
# Test text
|
|
|
|
| 21 |
text = "I want to kill them."
|
| 22 |
|
| 23 |
embeddings_for_prediction = getEmb(text)
|