Spaces:
Runtime error
Runtime error
Commit
·
70561f0
1
Parent(s):
2aeadde
Update app.py
Browse files
app.py
CHANGED
@@ -205,7 +205,40 @@ with gr.Blocks() as demo:
|
|
205 |
mode,
|
206 |
texturalstability
|
207 |
])
|
208 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
209 |
analyze_file_btn.click(process_file, inputs=[audio_input_file],
|
210 |
outputs=[html,
|
211 |
dict_moods,
|
|
|
205 |
mode,
|
206 |
texturalstability
|
207 |
])
|
208 |
+
gr.Examples(
|
209 |
+
examples = [["https://www.youtube.com/watch?v=QLWkl5YpiD0"],
|
210 |
+
["https://www.youtube.com/watch?v=u2INmt0dCD8"]],
|
211 |
+
inputs = [audio_url_input],
|
212 |
+
outputs=[html,
|
213 |
+
dict_moods,
|
214 |
+
genres,
|
215 |
+
instruments,
|
216 |
+
vocalgender,
|
217 |
+
timbres,
|
218 |
+
themes,
|
219 |
+
audioquality,
|
220 |
+
acousticness,
|
221 |
+
danceability,
|
222 |
+
arousal,
|
223 |
+
instrumentalness,
|
224 |
+
liveness,
|
225 |
+
speechiness,
|
226 |
+
valence,
|
227 |
+
melodic,
|
228 |
+
articulation,
|
229 |
+
rhythmicstability,
|
230 |
+
dissonance,
|
231 |
+
bpm,
|
232 |
+
binary,
|
233 |
+
key,
|
234 |
+
mode,
|
235 |
+
texturalstability
|
236 |
+
],
|
237 |
+
fn = process_url,
|
238 |
+
examples_per_page=15,
|
239 |
+
cache_examples=True,
|
240 |
+
)
|
241 |
+
|
242 |
analyze_file_btn.click(process_file, inputs=[audio_input_file],
|
243 |
outputs=[html,
|
244 |
dict_moods,
|