Spaces:
Running
Running
Michael Hu
commited on
Commit
·
bd261b0
1
Parent(s):
5f94a8b
fix
Browse files- utils/stt.py +1 -0
utils/stt.py
CHANGED
@@ -66,6 +66,7 @@ def transcribe_audio(audio_path):
|
|
66 |
outputs = model.generate(**inputs, language="en", task="transcribe")
|
67 |
|
68 |
result = processor.batch_decode(outputs, skip_special_tokens=True)[0]
|
|
|
69 |
logger.info(f"Transcription completed successfully")
|
70 |
return result
|
71 |
|
|
|
66 |
outputs = model.generate(**inputs, language="en", task="transcribe")
|
67 |
|
68 |
result = processor.batch_decode(outputs, skip_special_tokens=True)[0]
|
69 |
+
logger.info(f"transcription: %s" % result)
|
70 |
logger.info(f"Transcription completed successfully")
|
71 |
return result
|
72 |
|