Spaces:
Sleeping
Sleeping
Playing around again
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, "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.text, "en")
|
| 25 |
+
return newresult
|
| 26 |
|
| 27 |
|
| 28 |
|