Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -110,10 +110,11 @@ with demo:
|
|
110 |
|
111 |
with gr.Row():
|
112 |
audio = gr.Audio(source='microphone',type='filepath',label='Audio Input: Describe the Netflix show you would like to watch..')
|
|
|
|
|
113 |
|
114 |
with gr.Row():
|
115 |
query = gr.Textbox(label='Transcribed Text')
|
116 |
-
audio.change(asr,audio,query)
|
117 |
|
118 |
with gr.Row():
|
119 |
|
@@ -131,7 +132,7 @@ with demo:
|
|
131 |
|
132 |
sem_but = gr.Button('Search')
|
133 |
|
134 |
-
|
135 |
sem_but.click(semantic_search,inputs=[query,top_k],outputs=[bi_output,cross_output],queue=True)
|
136 |
|
137 |
gr.Markdown("")
|
|
|
110 |
|
111 |
with gr.Row():
|
112 |
audio = gr.Audio(source='microphone',type='filepath',label='Audio Input: Describe the Netflix show you would like to watch..')
|
113 |
+
audio_file = gr.Audio(source='microphone',type='filepath',label='Audio Upload')
|
114 |
+
btn = gr.Button("Transcribe")
|
115 |
|
116 |
with gr.Row():
|
117 |
query = gr.Textbox(label='Transcribed Text')
|
|
|
118 |
|
119 |
with gr.Row():
|
120 |
|
|
|
132 |
|
133 |
sem_but = gr.Button('Search')
|
134 |
|
135 |
+
btn.click(asr, inputs=[audio], outputs=[query])
|
136 |
sem_but.click(semantic_search,inputs=[query,top_k],outputs=[bi_output,cross_output],queue=True)
|
137 |
|
138 |
gr.Markdown("")
|