Spaces:
Sleeping
Sleeping
Playing around xD V2
Browse files
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
|
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 |
|