Neilblaze commited on
Commit
1887a86
·
unverified ·
1 Parent(s): 2e83bed

Playing around xD V2

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -21,8 +21,8 @@ def transcribe(audio):
21
  options = whisper.DecodingOptions(fp16 = False)
22
  result = whisper.decode(model, mel, options)
23
  # translate the result to english
24
- newresult = whisper.translate(result.text, "en")
25
- return newresult
26
 
27
 
28
 
 
21
  options = whisper.DecodingOptions(fp16 = False)
22
  result = whisper.decode(model, mel, options)
23
  # translate the result to english
24
+ newresult = whisper.translate(result, "en")
25
+ return newresult.text
26
 
27
 
28