refac
This commit is contained in:
1 parent
ed73ef3d8d
commit
94b66b1797
1 file changed
+1
-2
@@ -119,8 +119,7 @@ async def process_uploaded_file(
|
|||||||
if content_type and strict_match_mime_type(stt_supported, content_type):
|
if content_type and strict_match_mime_type(stt_supported, content_type):
|
||||||
# Audio / STT-supported files → transcribe then index
|
# Audio / STT-supported files → transcribe then index
|
||||||
file_path_processed = await asyncio.to_thread(Storage.get_file, file_path)
|
file_path_processed = await asyncio.to_thread(Storage.get_file, file_path)
|
||||||
result = await asyncio.to_thread(
|
result = await transcribe(
|
||||||
transcribe,
|
|
||||||
request,
|
request,
|
||||||
file_path_processed,
|
file_path_processed,
|
||||||
file_metadata,
|
file_metadata,
|
||||||
|
|||||||
Reference in new issue
Block a user