Gyaneshere commited on
Commit
8027a8b
·
verified ·
1 Parent(s): 9e0ad5a
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -1,5 +1,7 @@
1
  import gradio as gr
2
 
 
 
3
  def classify_audio(filepath):
4
  preds = pipe(filepath)
5
  outputs = {}
 
1
  import gradio as gr
2
 
3
+ model_id = "Gyaneshere/distilhubert-finetuned-gtzan"
4
+ pipe = pipeline("audio-classification", model=model_id)
5
  def classify_audio(filepath):
6
  preds = pipe(filepath)
7
  outputs = {}