Veucci commited on
Commit
8ee9908
1 Parent(s): ef131d2

Update README.md

Browse files

Added quick start code.

Files changed (1) hide show
  1. README.md +11 -0
README.md CHANGED
@@ -28,6 +28,17 @@ For training and test codes check out [Github page](https://github.com/Veucci/ly
28
  The model was trained on a diverse and labeled dataset of song lyrics, which contained approximately 3000 rows. The dataset was carefully curated to include songs from a wide range of artists and genres, ensuring a comprehensive representation of Pop, Rock, and Hip-Hop music.
29
  [DATASET](https://huggingface.co/datasets/Veucci/lyrics_3genre)
30
 
 
 
 
 
 
 
 
 
 
 
 
31
  ## License
32
 
33
  This dataset is released under the Creative Commons Attribution-NonCommercial license. This means that you are not allowed to use the dataset for commercial purposes. For detailed information about the license, please refer to the [LICENSE](./LICENSE) file.
 
28
  The model was trained on a diverse and labeled dataset of song lyrics, which contained approximately 3000 rows. The dataset was carefully curated to include songs from a wide range of artists and genres, ensuring a comprehensive representation of Pop, Rock, and Hip-Hop music.
29
  [DATASET](https://huggingface.co/datasets/Veucci/lyrics_3genre)
30
 
31
+ ## Quick Start
32
+
33
+ ```py
34
+ from transformers import pipeline
35
+
36
+ classifier = pipeline("text-classification", model="Veucci/lyrics-to-genre")
37
+ result = classifier("When I'm away from you, I'm happier than ever Wish I could explain it better I wish it wasn't true")
38
+
39
+ print(result)
40
+ ```
41
+
42
  ## License
43
 
44
  This dataset is released under the Creative Commons Attribution-NonCommercial license. This means that you are not allowed to use the dataset for commercial purposes. For detailed information about the license, please refer to the [LICENSE](./LICENSE) file.