Spaces:
Sleeping
Sleeping
updated shape of array for uploaded song
Browse files
app.py
CHANGED
@@ -108,7 +108,8 @@ elif options == 'Your Music':
|
|
108 |
else:
|
109 |
col4.metric(label=genre['label'], value=f"{genre['score']*100:.2f}%")
|
110 |
|
111 |
-
|
|
|
112 |
clipwise_output, embedding = at.inference(audio)
|
113 |
|
114 |
|
|
|
108 |
else:
|
109 |
col4.metric(label=genre['label'], value=f"{genre['score']*100:.2f}%")
|
110 |
|
111 |
+
|
112 |
+
audio = audio[None, :]
|
113 |
clipwise_output, embedding = at.inference(audio)
|
114 |
|
115 |
|