Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
| 149 |
|
| 150 |
gr.Markdown("")
|
| 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("")
|
| 152 |
|