PierreHanna commited on
Commit
0f671a0
·
1 Parent(s): 10d98a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -7
app.py CHANGED
@@ -64,16 +64,15 @@ def process(input_path):
64
 
65
  return dict_moods, dict_desc, genres, instruments, themes
66
 
67
-
68
  demo = gr.Interface(fn=process,
69
  inputs=gr.Audio(type="filepath"),
70
  outputs=gr.outputs.Label(label="Moods"),
71
  #outputs=gr.outputs.Textbox(label="Generated Text")
72
  #examples=example_list,
73
  #cache_examples=False
74
-
75
  )
76
-
77
 
78
  with gr.Blocks() as demo:
79
 
@@ -88,10 +87,10 @@ with gr.Blocks() as demo:
88
  analyze_btn = gr.Button('Analyze File')
89
 
90
  with gr.Row():
91
- dict_moods=gr.outputs.Label(label="Moods")
92
- #themes=gr.outputs.Label(label="Themes")
93
- genres = gr.outputs.Label(label="Genres")
94
- instruments = gr.outputs.Label(label="Instruments")
95
  dict_desc = gr.Textbox(label="music desc")
96
 
97
  themes = gr.Dataset(components=[gr.Textbox(visible=False)],
 
64
 
65
  return dict_moods, dict_desc, genres, instruments, themes
66
 
67
+ '''
68
  demo = gr.Interface(fn=process,
69
  inputs=gr.Audio(type="filepath"),
70
  outputs=gr.outputs.Label(label="Moods"),
71
  #outputs=gr.outputs.Textbox(label="Generated Text")
72
  #examples=example_list,
73
  #cache_examples=False
 
74
  )
75
+ '''
76
 
77
  with gr.Blocks() as demo:
78
 
 
87
  analyze_btn = gr.Button('Analyze File')
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")
95
 
96
  themes = gr.Dataset(components=[gr.Textbox(visible=False)],