nickmuchi commited on
Commit
15f030e
1 Parent(s): c2ddabc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -127,6 +127,7 @@ with demo:
127
 
128
  with gr.Row():
129
  query = gr.Textbox(label='Transcribed Text')
 
130
 
131
  with gr.Row():
132
 
@@ -142,10 +143,10 @@ with demo:
142
  examples = gr.Examples(examples=example_audio,inputs=[audio_file])
143
 
144
 
145
- sem_but = gr.Button('Search')
146
 
147
  btn.click(asr_inputs, inputs=[audio,audio_file], outputs=[query])
148
- sem_but.click(semantic_search,inputs=[query,top_k],outputs=[bi_output,cross_output],queue=True)
149
 
150
  gr.Markdown("![visitor badge](https://visitor-badge.glitch.me/badge?page_id=nickmuchi-netflix-shows-semantic-search)")
151
 
 
127
 
128
  with gr.Row():
129
  query = gr.Textbox(label='Transcribed Text')
130
+
131
 
132
  with gr.Row():
133
 
 
143
  examples = gr.Examples(examples=example_audio,inputs=[audio_file])
144
 
145
 
146
+ #sem_but = gr.Button('Search')
147
 
148
  btn.click(asr_inputs, inputs=[audio,audio_file], outputs=[query])
149
+ query.change(semantic_search,inputs=[query,top_k],outputs=[bi_output,cross_output],queue=True)
150
 
151
  gr.Markdown("![visitor badge](https://visitor-badge.glitch.me/badge?page_id=nickmuchi-netflix-shows-semantic-search)")
152