Spaces:
Runtime error
Runtime error
Commit
·
309aede
1
Parent(s):
1ec6ea6
Updated the app.py.
Browse files
app.py
CHANGED
@@ -4,13 +4,18 @@ from transformers import pipeline
|
|
4 |
|
5 |
pipe = pipeline("audio-classification", model="Shamik/whisper-base.en-finetuned-gtzan")
|
6 |
|
7 |
-
title = """
|
|
|
|
|
|
|
8 |
description = """
|
9 |
-
|
|
|
10 |
well it might certainly be classifying the genre of the music too. This tool classifies music based
|
11 |
on pre-defined genre from the [GTZAN](https://huggingface.co/datasets/marsyas/gtzan) dataset,
|
12 |
which contains music from the following genres:
|
13 |
`blues, classical, country, disco, hiphop, jazz, metal, pop, reggae, and rock`.
|
|
|
14 |
"""
|
15 |
|
16 |
def classify_audio(filepath):
|
|
|
4 |
|
5 |
pipe = pipeline("audio-classification", model="Shamik/whisper-base.en-finetuned-gtzan")
|
6 |
|
7 |
+
title = """
|
8 |
+
# Music Genre Classifier
|
9 |
+
"""
|
10 |
+
|
11 |
description = """
|
12 |
+
<p style='font-size:30px;'>
|
13 |
+
Next time you think of how **Shazam** <img src="./shazam.png" width=200px> finds the name of the song,
|
14 |
well it might certainly be classifying the genre of the music too. This tool classifies music based
|
15 |
on pre-defined genre from the [GTZAN](https://huggingface.co/datasets/marsyas/gtzan) dataset,
|
16 |
which contains music from the following genres:
|
17 |
`blues, classical, country, disco, hiphop, jazz, metal, pop, reggae, and rock`.
|
18 |
+
</p>
|
19 |
"""
|
20 |
|
21 |
def classify_audio(filepath):
|