wang0507 commited on
Commit
a869e37
·
1 Parent(s): 418f195

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -20,8 +20,7 @@ def inference(audio):
20
  options = whisper.DecodingOptions(fp16 = False)
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
  iface = gr.Interface(
27
  fn=inference,
 
20
  options = whisper.DecodingOptions(fp16 = False)
21
  result = whisper.decode(model, mel, options)
22
 
23
+ return result.text
 
24
 
25
  iface = gr.Interface(
26
  fn=inference,