MoritzLaurer HF staff commited on
Commit
172b026
1 Parent(s): eb9ba8c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -27,7 +27,7 @@ For highest performance (but less speed), I recommend using https://huggingface.
27
  ```python
28
  from transformers import pipeline
29
  classifier = pipeline("zero-shot-classification", model="MoritzLaurer/DeBERTa-v3-base-mnli-fever-docnli-ling-2c")
30
- sequence_to_classify = "Angela Merkel is a politician in Germany and leader of the CDU ist eine Politikerin in Deutschland und Vorsitzende der CDU"
31
  candidate_labels = ["politics", "economy", "entertainment", "environment"]
32
  output = classifier(sequence_to_classify, candidate_labels, multi_label=False)
33
  print(output)
27
  ```python
28
  from transformers import pipeline
29
  classifier = pipeline("zero-shot-classification", model="MoritzLaurer/DeBERTa-v3-base-mnli-fever-docnli-ling-2c")
30
+ sequence_to_classify = "Angela Merkel is a politician in Germany and leader of the CDU"
31
  candidate_labels = ["politics", "economy", "entertainment", "environment"]
32
  output = classifier(sequence_to_classify, candidate_labels, multi_label=False)
33
  print(output)