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