MoritzLaurer HF staff commited on
Commit
bf53319
1 Parent(s): 73454cf

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -64,7 +64,7 @@ device = torch.device("cuda") if torch.cuda.is_available() else torch.device("cp
64
 
65
  model_name = "MoritzLaurer/ernie-m-large-mnli-xnli"
66
  tokenizer = AutoTokenizer.from_pretrained(model_name)
67
- model = AutoModelForSequenceClassification.from_pretrained(model_name)
68
 
69
  premise = "Angela Merkel ist eine Politikerin in Deutschland und Vorsitzende der CDU"
70
  hypothesis = "Emmanuel Macron is the President of France"
 
64
 
65
  model_name = "MoritzLaurer/ernie-m-large-mnli-xnli"
66
  tokenizer = AutoTokenizer.from_pretrained(model_name)
67
+ model = AutoModelForSequenceClassification.from_pretrained(model_name).to(device)
68
 
69
  premise = "Angela Merkel ist eine Politikerin in Deutschland und Vorsitzende der CDU"
70
  hypothesis = "Emmanuel Macron is the President of France"