ongaunjie commited on
Commit
47df084
1 Parent(s): c96072a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +13 -0
README.md CHANGED
@@ -23,3 +23,16 @@ To use this model, you'll need to install the Hugging Face Transformers library
23
 
24
  ```bash
25
  pip install transformers
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
 
24
  ```bash
25
  pip install transformers
26
+
27
+ ## Model Loading
28
+
29
+ You can easily load the pre-trained model for sentiment analysis using Hugging Face's AutoModelForSequenceClassification.
30
+
31
+ ```python
32
+ from transformers import DistilBertForSequenceClassification, DistilBertTokenizerFast
33
+
34
+ model_name = "ongaunjie/distilbert-cloths-sentiment" # Replace with a valid model name from Hugging Face's model hub
35
+ tokenizer = DistilBertTokenizerFast.from_pretrained(model_name)
36
+ model = DistilBertForSequenceClassification.from_pretrained(model_name)
37
+
38
+