This commit is contained in:
suraj.shenoy.b@gmail.com
2025-01-25 10:35:45 -06:00
parent 24f6d7a4df
commit 4798efa02e
3 changed files with 1 additions and 57 deletions

View File

@@ -24,9 +24,8 @@ async def transcribe_audio(file: UploadFile = File(...)):
try:
# Transcribe the audio
result = model.transcribe("inputs/test.mp3")
result = model.transcribe(temp_path)
transcription = result["text"]
print(transcription)
finally:
# Clean up temporary file
os.remove(temp_path)