Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,9 @@ def classify_audio(filepath):
|
|
| 17 |
"""
|
| 18 |
preds = pipe(filepath)
|
| 19 |
classification = [{"label": p["label"], "score": p["score"]} for p in preds]
|
| 20 |
-
|
|
|
|
|
|
|
| 21 |
|
| 22 |
|
| 23 |
interface_options = {
|
|
|
|
| 17 |
"""
|
| 18 |
preds = pipe(filepath)
|
| 19 |
classification = [{"label": p["label"], "score": p["score"]} for p in preds]
|
| 20 |
+
label = classification[0]["label"]
|
| 21 |
+
number = classification[0]["score"]
|
| 22 |
+
return label, number
|
| 23 |
|
| 24 |
|
| 25 |
interface_options = {
|