HankyStyle commited on
Commit
ceb6be6
1 Parent(s): 0ed72d6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -1
README.md CHANGED
@@ -99,10 +99,17 @@ print(outputs.last_hidden_state.shape)
99
  }
100
 
101
 
 
102
 
 
 
 
103
 
 
104
 
105
-
 
 
106
 
107
 
108
  ```
 
99
  }
100
 
101
 
102
+ from transformers import AutoModelForSequenceClassification
103
 
104
+ model_name = "distilbert-base-uncased-finetuned-sst-2-english"
105
+ model = AutoModelForSequenceClassification.from_pretrained(model_name)
106
+ outputs = model(**inputs)
107
 
108
+ print(outputs.logits)
109
 
110
+ {
111
+ tensor([[-4.3450, 4.6878]], grad_fn=<AddmmBackward0>)
112
+ }
113
 
114
 
115
  ```