aka7774 commited on
Commit
191a693
1 Parent(s): d691b8c

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -36,7 +36,7 @@ async def transcribe_audio(file: UploadFile = Form(...)):
36
  file_content = await file.read()
37
  file_stream = io.BytesIO(file_content)
38
 
39
- text_only, text_with_timestamps = speech_to_text(file_stream)
40
 
41
  return {"transcription": text_only, "text_with_timestamps": text_with_timestamps}
42
  except Exception as e:
 
36
  file_content = await file.read()
37
  file_stream = io.BytesIO(file_content)
38
 
39
+ text_only, text_with_timestamps = speech_to_text(file_stream)
40
 
41
  return {"transcription": text_only, "text_with_timestamps": text_with_timestamps}
42
  except Exception as e: