Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -99,21 +99,30 @@ with gr.Blocks() as demo:
|
|
| 99 |
top5 = gr.Textbox(label="top5", show_label=False)
|
| 100 |
'''
|
| 101 |
top1_name = gr.Textbox(label="top1 track name", show_label=True)
|
| 102 |
-
top1 = gr.Audio(label="top1", show_label=
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 112 |
|
| 113 |
|
| 114 |
|
| 115 |
analyze_url_btn.click(process_url, inputs=[audio_url_input],
|
| 116 |
-
outputs=[html,top1_name, top1, top2, top3, top4, top5, top6, top7, top8, top9, top10])
|
| 117 |
gr.Examples(
|
| 118 |
examples = [
|
| 119 |
"https://www.youtube.com/watch?v=aNzCDt2eidg",
|
|
@@ -123,12 +132,12 @@ with gr.Blocks() as demo:
|
|
| 123 |
##"https://www.youtube.com/watch?v=dRX0wDNK6S4",
|
| 124 |
"https://www.youtube.com/watch?v=Guzu9aAeDIc"],
|
| 125 |
inputs = [audio_url_input],
|
| 126 |
-
outputs = [html,top1_name, top1, top2, top3, top4, top5, top6, top7, top8, top9, top10],
|
| 127 |
fn = process_url,
|
| 128 |
cache_examples=False,
|
| 129 |
)
|
| 130 |
analyze_file_btn.click(process_file, inputs=[audio_input_file],
|
| 131 |
-
outputs=[top1_name, top1, top2, top3, top4, top5, top6, top7, top8, top9, top10])
|
| 132 |
|
| 133 |
|
| 134 |
demo.launch(debug=True)
|
|
|
|
| 99 |
top5 = gr.Textbox(label="top5", show_label=False)
|
| 100 |
'''
|
| 101 |
top1_name = gr.Textbox(label="top1 track name", show_label=True)
|
| 102 |
+
top1 = gr.Audio(label="top1", show_label=False)
|
| 103 |
+
top2_name = gr.Textbox(label="top2 track name", show_label=True)
|
| 104 |
+
top2 = gr.Audio(label="top2", show_label=False)
|
| 105 |
+
top3_name = gr.Textbox(label="top3 track name", show_label=True)
|
| 106 |
+
top3 = gr.Audio(label="top3", show_label=False)
|
| 107 |
+
top4_name = gr.Textbox(label="top4 track name", show_label=True)
|
| 108 |
+
top4 = gr.Audio(label="top4", show_label=False)
|
| 109 |
+
top5_name = gr.Textbox(label="top5 track name", show_label=True)
|
| 110 |
+
top5 = gr.Audio(label="top5", show_label=False)
|
| 111 |
+
top6_name = gr.Textbox(label="top6 track name", show_label=True)
|
| 112 |
+
top6 = gr.Audio(label="top6", show_label=False)
|
| 113 |
+
top7_name = gr.Textbox(label="top7 track name", show_label=True)
|
| 114 |
+
top7 = gr.Audio(label="top7", show_label=False)
|
| 115 |
+
top8_name = gr.Textbox(label="top8 track name", show_label=True)
|
| 116 |
+
top8 = gr.Audio(label="top8", show_label=False)
|
| 117 |
+
top9_name = gr.Textbox(label="top9 track name", show_label=True)
|
| 118 |
+
top9 = gr.Audio(label="top9", show_label=False)
|
| 119 |
+
top10_name = gr.Textbox(label="top10 track name", show_label=True)
|
| 120 |
+
top10 = gr.Audio(label="top10", show_label=False)
|
| 121 |
|
| 122 |
|
| 123 |
|
| 124 |
analyze_url_btn.click(process_url, inputs=[audio_url_input],
|
| 125 |
+
outputs=[html,top1_name, top1, top2_name, top2, top3_name, top3, top4_name, top4, top5_name, top5, top6_name, top6, top7_name, top7, top8_name, top8, top9_name, top9, top10_name, top10])
|
| 126 |
gr.Examples(
|
| 127 |
examples = [
|
| 128 |
"https://www.youtube.com/watch?v=aNzCDt2eidg",
|
|
|
|
| 132 |
##"https://www.youtube.com/watch?v=dRX0wDNK6S4",
|
| 133 |
"https://www.youtube.com/watch?v=Guzu9aAeDIc"],
|
| 134 |
inputs = [audio_url_input],
|
| 135 |
+
outputs = [html,top1_name, top1, top2_name, top2, top3_name, top3, top4_name, top4, top5_name, top5, top6_name, top6, top7_name, top7, top8_name, top8, top9_name, top9, top10_name, top10],
|
| 136 |
fn = process_url,
|
| 137 |
cache_examples=False,
|
| 138 |
)
|
| 139 |
analyze_file_btn.click(process_file, inputs=[audio_input_file],
|
| 140 |
+
outputs=[html,top1_name, top1, top2_name, top2, top3_name, top3, top4_name, top4, top5_name, top5, top6_name, top6, top7_name, top7, top8_name, top8, top9_name, top9, top10_name, top10])
|
| 141 |
|
| 142 |
|
| 143 |
demo.launch(debug=True)
|