Update README.md
Browse files
README.md
CHANGED
@@ -133,9 +133,6 @@ llm = LLM(
|
|
133 |
|
134 |
### Toxicity Detection Example:
|
135 |
```python
|
136 |
-
text_to_evaluate = "This is some text to evaluate"
|
137 |
-
system, prompt = toxic_format_func(text_to_evaluate)
|
138 |
-
|
139 |
from transformers import AutoTokenizer
|
140 |
|
141 |
def run_inference(system, prompt):
|
@@ -163,6 +160,8 @@ def run_inference(system, prompt):
|
|
163 |
|
164 |
return generated_text
|
165 |
|
|
|
|
|
166 |
run_inference(system, prompt)
|
167 |
```
|
168 |
|
|
|
133 |
|
134 |
### Toxicity Detection Example:
|
135 |
```python
|
|
|
|
|
|
|
136 |
from transformers import AutoTokenizer
|
137 |
|
138 |
def run_inference(system, prompt):
|
|
|
160 |
|
161 |
return generated_text
|
162 |
|
163 |
+
text_to_evaluate = "This is some text to evaluate"
|
164 |
+
system, prompt = toxic_format_func(text_to_evaluate)
|
165 |
run_inference(system, prompt)
|
166 |
```
|
167 |
|