ashish-001 commited on
Commit
0e8b08c
·
verified ·
1 Parent(s): df7120d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -1
README.md CHANGED
@@ -9,6 +9,7 @@ metrics:
9
  base_model:
10
  - distilbert/distilbert-base-uncased
11
  pipeline_tag: text-classification
 
12
  ---
13
  This repository contains a fine-tuned DistilBERT model for sentiment classification of Amazon product reviews The model classifies a given review into two classes: Positive and Negative
14
 
@@ -51,4 +52,4 @@ outputs = model(**inputs)
51
  logits = outputs.logits
52
  sentiment = torch.argmax(logits, dim=1).item()
53
 
54
- print(f"Predicted sentiment: {'Positive' if sentiment else 'Negative'}")
 
9
  base_model:
10
  - distilbert/distilbert-base-uncased
11
  pipeline_tag: text-classification
12
+ library_name: transformers
13
  ---
14
  This repository contains a fine-tuned DistilBERT model for sentiment classification of Amazon product reviews The model classifies a given review into two classes: Positive and Negative
15
 
 
52
  logits = outputs.logits
53
  sentiment = torch.argmax(logits, dim=1).item()
54
 
55
+ print(f"Predicted sentiment: {'Positive' if sentiment else 'Negative'}")