Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
vs4vijay committed Dec 22, 2024
1 parent a85af72 commit a198952
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/markitdown/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ async def convert(file: UploadFile = File(...)):

os.remove(temp_file_path)

return FileResponse(output_file_path, filename=f"{os.path.splitext(file.filename)[0]}.md")
# return FileResponse(output_file_path, filename=f"{os.path.splitext(file.filename)[0]}.md")
return {"markdown": result.text_content}

except Exception as e:
raise HTTPException(status_code=500, detail=str(e))

0 comments on commit a198952

Please sign in to comment.