abidlabs HF staff commited on
Commit
b091bfd
1 Parent(s): 3507c2b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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, gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
25
 
26
 
27
 
@@ -189,7 +189,7 @@ with block:
189
 
190
 
191
 
192
- btn.click(inference, inputs=[audio], outputs=[text, community_icon, loading_icon, share_button])
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('''