Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def inference(audio):
|
|
21 |
result = whisper.decode(model, mel, options)
|
22 |
|
23 |
print(result.text)
|
24 |
-
return result.text
|
25 |
|
26 |
|
27 |
|
@@ -189,7 +189,7 @@ with block:
|
|
189 |
|
190 |
|
191 |
|
192 |
-
btn.click(inference, inputs=[audio], outputs=[text
|
193 |
share_button.click(None, [], [], _js=share_js)
|
194 |
|
195 |
gr.HTML('''
|
|
|
21 |
result = whisper.decode(model, mel, options)
|
22 |
|
23 |
print(result.text)
|
24 |
+
return result.text
|
25 |
|
26 |
|
27 |
|
|
|
189 |
|
190 |
|
191 |
|
192 |
+
btn.click(inference, inputs=[audio], outputs=[text])
|
193 |
share_button.click(None, [], [], _js=share_js)
|
194 |
|
195 |
gr.HTML('''
|