thak123 commited on
Commit
9291c54
1 Parent(s): 2caa73c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +14 -0
README.md CHANGED
@@ -29,6 +29,20 @@ It achieves the following results on the evaluation set:
29
 
30
  More information needed
31
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  ## Intended uses & limitations
33
 
34
  More information needed
 
29
 
30
  More information needed
31
 
32
+ ## Usage
33
+ To use the model use the following script. Kindly set the ***device*** based on availability of the GPU.
34
+
35
+ ```
36
+ from transformers import (pipeline)
37
+
38
+ analyzer = pipeline(
39
+ "sentiment-analysis", model="FFZG-cleopatra/M2SA-text-only"
40
+ )
41
+
42
+ input_text = "I feel amazing today."
43
+ print(analyzer(input_text)[0]["label"])
44
+
45
+ ```
46
  ## Intended uses & limitations
47
 
48
  More information needed