Spaces:
Sleeping
Sleeping
Upload 5 files
Browse files- .gitattributes +4 -0
- Freedom.mp3 +3 -0
- Power Ambient and Inspiring.mp3 +3 -0
- Summer Mood.mp3 +3 -0
- app.py +3 -4
- pxdtodosaudiosdelpresidente-copaypuro-ivoox72812409.mp3 +3 -0
.gitattributes
CHANGED
@@ -33,3 +33,7 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
Freedom.mp3 filter=lfs diff=lfs merge=lfs -text
|
37 |
+
Power[[:space:]]Ambient[[:space:]]and[[:space:]]Inspiring.mp3 filter=lfs diff=lfs merge=lfs -text
|
38 |
+
pxdtodosaudiosdelpresidente-copaypuro-ivoox72812409.mp3 filter=lfs diff=lfs merge=lfs -text
|
39 |
+
Summer[[:space:]]Mood.mp3 filter=lfs diff=lfs merge=lfs -text
|
Freedom.mp3
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1557f3d256cab755e212819736484fe06d248bf5cf393a109d3b062a07bb1bd6
|
3 |
+
size 5600921
|
Power Ambient and Inspiring.mp3
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:31da99278ed336ffb1eb4c7818ac6ba68f5550e0acdc09a331f34e7e7aa8442c
|
3 |
+
size 7031437
|
Summer Mood.mp3
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1d5df500fbeecae3ed4caec269debca284560d3e4377b21ab93ff8337f11fdaf
|
3 |
+
size 3104152
|
app.py
CHANGED
@@ -15,10 +15,9 @@ def classify_audio(filepath):
|
|
15 |
{"country": 0.8339303731918335, "rock":0.11914275586605072}
|
16 |
"""
|
17 |
preds = pipe(filepath)
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
return outputs
|
22 |
|
23 |
interface_options = {
|
24 |
"title": "Music Genre Classification",
|
|
|
15 |
{"country": 0.8339303731918335, "rock":0.11914275586605072}
|
16 |
"""
|
17 |
preds = pipe(filepath)
|
18 |
+
classification = [{"label": p["label"], "score": p["score"]} for p in preds]
|
19 |
+
return {"classification": classification}
|
20 |
+
|
|
|
21 |
|
22 |
interface_options = {
|
23 |
"title": "Music Genre Classification",
|
pxdtodosaudiosdelpresidente-copaypuro-ivoox72812409.mp3
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8e00afa0078caeabb8124bad93ae7278a11b12b6307a63c86d08f1f3838c723e
|
3 |
+
size 20759895
|