Spaces:
Sleeping
Sleeping
Update main.py
Browse files
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 |
-
|
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:
|