Update README.md
Browse files
README.md
CHANGED
@@ -29,8 +29,8 @@ The easiest way is to load through the pipeline object offered by transformers l
|
|
29 |
```python
|
30 |
from transformers import AutoTokenizer, TFAutoModelForSequenceClassification
|
31 |
from transformers import pipeline
|
32 |
-
tokenizer = AutoTokenizer.from_pretrained("d4data/
|
33 |
-
model = TFAutoModelForSequenceClassification.from_pretrained("d4data/
|
34 |
|
35 |
classifier = pipeline('text-classification', model=model, tokenizer=tokenizer) # cuda = 0,1 based on gpu availability
|
36 |
classifier("The irony, of course, is that the exhibit that invites people to throw trash at vacuuming Ivanka Trump lookalike reflects every stereotype feminists claim to stand against, oversexualizing Ivanka’s body and ignoring her hard work.")
|
|
|
29 |
```python
|
30 |
from transformers import AutoTokenizer, TFAutoModelForSequenceClassification
|
31 |
from transformers import pipeline
|
32 |
+
tokenizer = AutoTokenizer.from_pretrained("d4data/environmental-due-diligence-model")
|
33 |
+
model = TFAutoModelForSequenceClassification.from_pretrained("d4data/environmental-due-diligence-model")
|
34 |
|
35 |
classifier = pipeline('text-classification', model=model, tokenizer=tokenizer) # cuda = 0,1 based on gpu availability
|
36 |
classifier("The irony, of course, is that the exhibit that invites people to throw trash at vacuuming Ivanka Trump lookalike reflects every stereotype feminists claim to stand against, oversexualizing Ivanka’s body and ignoring her hard work.")
|