BOENE commited on
Commit
a7bbfe2
·
verified ·
1 Parent(s): a0d3885

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  import gradio as gr
2
 
3
  def classify_audio(filepath):
 
1
+ from transformers import pipeline
2
+
3
+ model_id = "BOENE/distilhubert-finetuned-gtzan"
4
+ pipe = pipeline("audio-classification", model=model_id)
5
+
6
  import gradio as gr
7
 
8
  def classify_audio(filepath):