PierreHanna commited on
Commit
471ff37
·
1 Parent(s): 67c4696

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
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,
@@ -105,9 +105,8 @@ with gr.Blocks() as demo:
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])
111
- #audio_input.submit(process, inputs=[audio_input], outputs=[moods]) # pas de sens !
112
 
113
  demo.launch(debug=False)
 
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,
 
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])
 
111
 
112
  demo.launch(debug=False)