Neilblaze commited on
Commit
96a47e3
·
unverified ·
1 Parent(s): ee5ce46

Playing around xDDD

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ def transcribe(audio):
25
  options = whisper.DecodingOptions(fp16 = False)
26
  result = whisper.decode(model, mel, options)
27
 
28
- finalResult = text_to_text_generation(prompt='return.text', model_id='facebook/m2m100_418M', device='cpu',target_lang='English')
29
  return finalResult
30
 
31
  # api endpoint to return the transcription in EN as a json response
 
25
  options = whisper.DecodingOptions(fp16 = False)
26
  result = whisper.decode(model, mel, options)
27
 
28
+ finalResult = text_to_text_generation(prompt=result.text, model_id='facebook/m2m100_418M', device='cpu',target_lang='English')
29
  return finalResult
30
 
31
  # api endpoint to return the transcription in EN as a json response