Spaces:
Runtime error
Runtime error
Commit ·
701d5f1
1
Parent(s): 8844de9
Update app.py
Browse files
app.py
CHANGED
|
@@ -55,11 +55,11 @@ def process(input_path):
|
|
| 55 |
for d in res['timbres']:
|
| 56 |
timbres[d['name']] = d['probability']
|
| 57 |
|
|
|
|
| 58 |
vocalgender[res['vocal_gender'][0]['name']]= res['vocal_gender'][0]['probability']
|
| 59 |
-
print(vocalgender)
|
| 60 |
|
|
|
|
| 61 |
audioquality[res['audio_quality'][0]['name']]= res['audio_quality'][0]['probability']
|
| 62 |
-
print(audioquality)
|
| 63 |
|
| 64 |
return dict_moods, genres, instruments, vocalgender, timbres, themes, audioquality,str(dict_desc['Electric/Acoustic']),str(dict_desc['Danceability']),str(dict_desc['Arousal']),str(dict_desc['Vocal/Instrumental']),str(dict_desc['Studio/Live']),str(dict_desc['Music/Speech']),str(dict_desc['Valence']),str(dict_desc['Melodic']),str(dict_desc['Articulation']),str(dict_desc['RhythmicStability']),str(dict_desc['Dissonance']),str(dict_desc['BPM']),str(dict_desc['Binary']),str(dict_desc['Key']),str(dict_desc['Mode']),str(dict_desc['TexturalStability'])
|
| 65 |
|
|
|
|
| 55 |
for d in res['timbres']:
|
| 56 |
timbres[d['name']] = d['probability']
|
| 57 |
|
| 58 |
+
vocalgender= {}
|
| 59 |
vocalgender[res['vocal_gender'][0]['name']]= res['vocal_gender'][0]['probability']
|
|
|
|
| 60 |
|
| 61 |
+
audioquality = {}
|
| 62 |
audioquality[res['audio_quality'][0]['name']]= res['audio_quality'][0]['probability']
|
|
|
|
| 63 |
|
| 64 |
return dict_moods, genres, instruments, vocalgender, timbres, themes, audioquality,str(dict_desc['Electric/Acoustic']),str(dict_desc['Danceability']),str(dict_desc['Arousal']),str(dict_desc['Vocal/Instrumental']),str(dict_desc['Studio/Live']),str(dict_desc['Music/Speech']),str(dict_desc['Valence']),str(dict_desc['Melodic']),str(dict_desc['Articulation']),str(dict_desc['RhythmicStability']),str(dict_desc['Dissonance']),str(dict_desc['BPM']),str(dict_desc['Binary']),str(dict_desc['Key']),str(dict_desc['Mode']),str(dict_desc['TexturalStability'])
|
| 65 |
|