From 18aabea9f45ee3d979bc7c54ae2c0c3669cb7ec1 Mon Sep 17 00:00:00 2001 From: Dicklesworthstone Date: Mon, 20 May 2024 02:02:58 -0400 Subject: [PATCH] Fix --- swiss_army_llama.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swiss_army_llama.py b/swiss_army_llama.py index bde032f..e021e81 100644 --- a/swiss_army_llama.py +++ b/swiss_army_llama.py @@ -1373,7 +1373,7 @@ async def convert_document_to_sentences( result = magika.identify_bytes(input_data_binary) mime_type = result.output.mime_type try: - result = convert_document_to_sentences_func(temp_file_path, mime_type) + result = await convert_document_to_sentences_func(temp_file_path, mime_type) finally: os.remove(temp_file_path) return JSONResponse(content=result)