Nico8800 commited on
Commit
e7433d6
1 Parent(s): 4c18e6f

remove print

Browse files
Files changed (1) hide show
  1. Modules/Speech2Text/transcribe.py +1 -1
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.text
 
3
  def transcribe(audio_path):
4
  model = whisper.load_model("base")
5
  result = model.transcribe(audio_path)
6
+ return result['text']