PierreHanna commited on
Commit
415e92e
1 Parent(s): 341f056

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -51,7 +51,8 @@ def process(audio_file, embed_html_all):
51
  top1, top2, top3, top4, top5 = get_top(I, ind_filenames, catalog)
52
  return embed_html_all, top1, top2, top3, top4, top5
53
 
54
-
 
55
  with gr.Blocks() as demo:
56
 
57
  with gr.Row():
@@ -95,9 +96,10 @@ with gr.Blocks() as demo:
95
 
96
 
97
  analyze_url_btn.click(process_url, inputs=[audio_url_input],
98
- outputs=[html,top1, top2, top3, top4, top5])
99
 
100
  analyze_file_btn.click(process_file, inputs=[audio_input_file],
101
  outputs=[top1, top2, top3, top4, top5])
102
 
 
103
  demo.launch(debug=True)
 
51
  top1, top2, top3, top4, top5 = get_top(I, ind_filenames, catalog)
52
  return embed_html_all, top1, top2, top3, top4, top5
53
 
54
+ poc_examples = [["https://www.youtube.com/watch?v=aNzCDt2eidg"]]
55
+
56
  with gr.Blocks() as demo:
57
 
58
  with gr.Row():
 
96
 
97
 
98
  analyze_url_btn.click(process_url, inputs=[audio_url_input],
99
+ outputs=[html,top1, top2, top3, top4, top5], , examples=poc_examples, cache_examples=True)
100
 
101
  analyze_file_btn.click(process_file, inputs=[audio_input_file],
102
  outputs=[top1, top2, top3, top4, top5])
103
 
104
+
105
  demo.launch(debug=True)