mrm8488 commited on
Commit
5c1c307
β€’
1 Parent(s): 9ac17bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -16,9 +16,8 @@ def inference(audio):
16
 
17
  options = whisper.DecodingOptions(fp16 = False)
18
  result = whisper.decode(model, mel, options)
19
-
20
- print(result.text)
21
- return result.text
22
 
23
 
24
  title="Open AI Whisper"
 
16
 
17
  options = whisper.DecodingOptions(fp16 = False)
18
  result = whisper.decode(model, mel, options)
19
+
20
+ return lang, result.text
 
21
 
22
 
23
  title="Open AI Whisper"