Spaces:
Runtime error
Runtime error
JackismyShephard
commited on
Commit
·
0641613
1
Parent(s):
2178240
display all 10 music genre classes
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ pipe = pipeline(
|
|
13 |
)
|
14 |
|
15 |
def classify_audio(filepath):
|
16 |
-
preds = pipe(filepath)
|
17 |
outputs = {}
|
18 |
for p in preds:
|
19 |
outputs[p["label"]] = p["score"]
|
|
|
13 |
)
|
14 |
|
15 |
def classify_audio(filepath):
|
16 |
+
preds = pipe(filepath, tok_k = 10)
|
17 |
outputs = {}
|
18 |
for p in preds:
|
19 |
outputs[p["label"]] = p["score"]
|