Spaces:
Runtime error
Runtime error
Commit ·
0f671a0
1
Parent(s): 10d98a4
Update app.py
Browse files
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.
|
| 92 |
-
#themes=gr.
|
| 93 |
-
genres = gr.
|
| 94 |
-
instruments = gr.
|
| 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)],
|