shamik-lseg commited on
Commit
ecc352f
·
1 Parent(s): a1cb520

Updated the readme and app.py.

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -6,7 +6,7 @@ pipe = pipeline("audio-classification", model="Shamik/whisper-base.en-finetuned-
6
 
7
  title = """Music Genre Classifier"""
8
  description = """
9
- Next time you think of how Shazam <img src="shzam.png" width=200px> finds the name of the song,
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:
@@ -22,7 +22,7 @@ def classify_audio(filepath):
22
  return outputs
23
 
24
 
25
- label = gr.outputs.Label()
26
 
27
  demo = gr.Interface(fn=classify_audio,
28
  inputs=gr.Audio(type="filepath"),
 
6
 
7
  title = """Music Genre Classifier"""
8
  description = """
9
+ Next time you think of how **Shazam** <img src="shzam.png" width=200px> finds the name of the song,
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:
 
22
  return outputs
23
 
24
 
25
+ label = gr.Label()
26
 
27
  demo = gr.Interface(fn=classify_audio,
28
  inputs=gr.Audio(type="filepath"),