Spaces:
Sleeping
Sleeping
Playing around xDDD
Browse files
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=
|
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
|