Update README.md
Browse files
README.md
CHANGED
@@ -74,6 +74,7 @@ You can then use the model directly through the pipeline API, which provides a h
|
|
74 |
|
75 |
This will create a pipeline object for text-to-text generation using your model. You can then pass the input text to the pipe object to generate the gender-neutral version. The output will be a list of dictionaries, each containing the generated text.
|
76 |
Alternatively, you can still load the tokenizer and model manually for more fine-grained control:
|
|
|
77 |
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
|
78 |
|
79 |
tokenizer = AutoTokenizer.from_pretrained("mongrz/model_output")
|
|
|
74 |
|
75 |
This will create a pipeline object for text-to-text generation using your model. You can then pass the input text to the pipe object to generate the gender-neutral version. The output will be a list of dictionaries, each containing the generated text.
|
76 |
Alternatively, you can still load the tokenizer and model manually for more fine-grained control:
|
77 |
+
|
78 |
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
|
79 |
|
80 |
tokenizer = AutoTokenizer.from_pretrained("mongrz/model_output")
|