-
-
Save up1/e996ce1c9d254a275fb4255beeed6e0a to your computer and use it in GitHub Desktop.
MarkItDown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from markitdown import MarkItDown | |
markitdown = MarkItDown() | |
result = markitdown.convert("ExecutionArchitectureApproachPaper.pdf") | |
print(result.text_content) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$uvx markitdown ExecutionArchitectureApproachPaper.pdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from markitdown import MarkItDown | |
from openai import OpenAI | |
client = OpenAI() | |
md = MarkItDown(mlm_client=client, mlm_model="gpt-4o") | |
result = md.convert("kbank.jpg") | |
print(result.text_content) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MLM Prompt: | |
Write a detailed caption for this image. | |
# Description: | |
The image shows a digital payment receipt. The transaction is marked "Payment Completed" | |
and was processed on August 20, 2024, at 1:33 PM. The payer is Mr. Somkiat P, | |
using KBank with a partially obscured account number (xxx-x-xxxx-x). | |
The recipient is "AMZ_SD4330 UNION MALL," under DEEMAPHARUAY CO., LTD. | |
The transaction ID is 014233133358BQR09410. | |
The payment amount is 45.00 Baht, with no additional fee applied. | |
There is a QR code provided for slip verification. | |
The K+ logo is visible at the top right corner, and the Café Amazon logo is featured below the sender details. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment