From d46cff88579ecaa5e3e7cbb04c820fb6e095ae63 Mon Sep 17 00:00:00 2001 From: Vijay Soni Date: Mon, 23 Dec 2024 01:13:56 +0530 Subject: [PATCH] --- src/markitdown/api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/markitdown/api.py b/src/markitdown/api.py index 85f4350..0f9ce4e 100644 --- a/src/markitdown/api.py +++ b/src/markitdown/api.py @@ -19,9 +19,9 @@ async def convert(file: UploadFile = File(...)): markitdown = MarkItDown() result = markitdown.convert(temp_file_path) - output_file_path = f"/tmp/{os.path.splitext(file.filename)[0]}.md" - with open(output_file_path, "w") as output_file: - output_file.write(result.text_content) + # output_file_path = f"/tmp/{os.path.splitext(file.filename)[0]}.md" + # with open(output_file_path, "w") as output_file: + # output_file.write(result.text_content) os.remove(temp_file_path)