Spaces:
Runtime error
Runtime error
PierreHanna
commited on
Commit
•
8073c1f
1
Parent(s):
5a85c5b
Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,7 @@ def process(input_path):
|
|
62 |
audioquality = [res['audio_quality'][0]['name'], res['audio_quality'][0]['probability']]
|
63 |
print(audioquality)
|
64 |
|
65 |
-
return dict_moods, genres, instruments, themes, dict_desc['Vocal/Instrumental']
|
66 |
|
67 |
'''
|
68 |
demo = gr.Interface(fn=process,
|
@@ -88,7 +88,7 @@ with gr.Blocks() as demo:
|
|
88 |
|
89 |
with gr.Row():
|
90 |
dict_moods=gr.Label(label="Moods")
|
91 |
-
|
92 |
genres = gr.Label(label="Genres")
|
93 |
instruments = gr.Label(label="Instruments")
|
94 |
#dict_desc = gr.Textbox(label="music desc")
|
@@ -104,7 +104,7 @@ with gr.Blocks() as demo:
|
|
104 |
],
|
105 |
)
|
106 |
'''
|
107 |
-
themes = gr.Dataset(components=[gr.Textbox(visible=False)],label="type de tags")
|
108 |
vocalinstru = gr.Textbox(label="Vocal/Instrumental"),
|
109 |
|
110 |
analyze_btn.click(process, inputs=[audio_input], outputs=[dict_moods, genres, instruments, themes, vocalinstru])
|
|
|
62 |
audioquality = [res['audio_quality'][0]['name'], res['audio_quality'][0]['probability']]
|
63 |
print(audioquality)
|
64 |
|
65 |
+
return dict_moods, genres, instruments, themes, [dict_desc['Vocal/Instrumental']]
|
66 |
|
67 |
'''
|
68 |
demo = gr.Interface(fn=process,
|
|
|
88 |
|
89 |
with gr.Row():
|
90 |
dict_moods=gr.Label(label="Moods")
|
91 |
+
themes=gr.Label(label="Themes")
|
92 |
genres = gr.Label(label="Genres")
|
93 |
instruments = gr.Label(label="Instruments")
|
94 |
#dict_desc = gr.Textbox(label="music desc")
|
|
|
104 |
],
|
105 |
)
|
106 |
'''
|
107 |
+
#themes = gr.Dataset(components=[gr.Textbox(visible=False)],label="type de tags")
|
108 |
vocalinstru = gr.Textbox(label="Vocal/Instrumental"),
|
109 |
|
110 |
analyze_btn.click(process, inputs=[audio_input], outputs=[dict_moods, genres, instruments, themes, vocalinstru])
|