Spaces:
Paused
Paused
updated
Browse files
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 = {}
|