Commit
·
86cca6a
1
Parent(s):
b975e32
Update README.md
Browse files
README.md
CHANGED
@@ -66,7 +66,7 @@ device = torch.device("cuda") if torch.cuda.is_available() else torch.device("cp
|
|
66 |
|
67 |
model_name = "MoritzLaurer/ernie-m-base-mnli-xnli"
|
68 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
69 |
-
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
70 |
|
71 |
premise = "Angela Merkel ist eine Politikerin in Deutschland und Vorsitzende der CDU"
|
72 |
hypothesis = "Emmanuel Macron is the President of France"
|
|
|
66 |
|
67 |
model_name = "MoritzLaurer/ernie-m-base-mnli-xnli"
|
68 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
69 |
+
model = AutoModelForSequenceClassification.from_pretrained(model_name).to(device)
|
70 |
|
71 |
premise = "Angela Merkel ist eine Politikerin in Deutschland und Vorsitzende der CDU"
|
72 |
hypothesis = "Emmanuel Macron is the President of France"
|