Update README.md
Browse files
README.md
CHANGED
|
@@ -90,10 +90,9 @@ Or to take arms against a sea of troubles
|
|
| 90 |
And by opposing end them.
|
| 91 |
"""
|
| 92 |
|
| 93 |
-
output = gigacheck_model([text])
|
| 94 |
|
| 95 |
print([gigacheck_model.config.id2label[int(c_id)] for c_id in output.pred_label_ids])
|
| 96 |
-
|
| 97 |
```
|
| 98 |
|
| 99 |
### Inference with gigacheck
|
|
@@ -120,7 +119,7 @@ Or to take arms against a sea of troubles
|
|
| 120 |
And by opposing end them.
|
| 121 |
"""
|
| 122 |
|
| 123 |
-
output = model.predict(text)
|
| 124 |
print(output)
|
| 125 |
```
|
| 126 |
|
|
|
|
| 90 |
And by opposing end them.
|
| 91 |
"""
|
| 92 |
|
| 93 |
+
output = gigacheck_model([text.replace("\n", " ")])
|
| 94 |
|
| 95 |
print([gigacheck_model.config.id2label[int(c_id)] for c_id in output.pred_label_ids])
|
|
|
|
| 96 |
```
|
| 97 |
|
| 98 |
### Inference with gigacheck
|
|
|
|
| 119 |
And by opposing end them.
|
| 120 |
"""
|
| 121 |
|
| 122 |
+
output = model.predict(text.replace("\n", " "))
|
| 123 |
print(output)
|
| 124 |
```
|
| 125 |
|