Spaces:
Sleeping
Sleeping
Nico8800
commited on
Commit
•
e7433d6
1
Parent(s):
4c18e6f
remove print
Browse files
Modules/Speech2Text/transcribe.py
CHANGED
@@ -3,4 +3,4 @@ import whisper
|
|
3 |
def transcribe(audio_path):
|
4 |
model = whisper.load_model("base")
|
5 |
result = model.transcribe(audio_path)
|
6 |
-
return result
|
|
|
3 |
def transcribe(audio_path):
|
4 |
model = whisper.load_model("base")
|
5 |
result = model.transcribe(audio_path)
|
6 |
+
return result['text']
|