Replace output result
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ def inference(audio):
|
|
15 |
|
16 |
# print(result.text)
|
17 |
# return result.text
|
18 |
-
return whisper(audio).replace("AutomaticSpeechRecognitionOutput(text='
|
19 |
|
20 |
title = "Whisper Speech Recognition"
|
21 |
|
|
|
15 |
|
16 |
# print(result.text)
|
17 |
# return result.text
|
18 |
+
return whisper(audio).replace("AutomaticSpeechRecognitionOutput(text='", "").replace("', chunks=None)", "")
|
19 |
|
20 |
title = "Whisper Speech Recognition"
|
21 |
|