Update README.md
This commit is contained in:
@@ -75,7 +75,7 @@ from markitdown import MarkItDown
|
|||||||
from openai import OpenAI
|
from openai import OpenAI
|
||||||
import os
|
import os
|
||||||
client = OpenAI(api_key="your-api-key-here")
|
client = OpenAI(api_key="your-api-key-here")
|
||||||
md = MarkItDown(mlm_client=client, mlm_model="gpt-4o-2024-11-20")
|
md = MarkItDown(llm_client=client, llm_model="gpt-4o-2024-11-20")
|
||||||
supported_extensions = ('.pptx', '.docx', '.pdf', '.jpg', '.jpeg', '.png')
|
supported_extensions = ('.pptx', '.docx', '.pdf', '.jpg', '.jpeg', '.png')
|
||||||
files_to_convert = [f for f in os.listdir('.') if f.lower().endswith(supported_extensions)]
|
files_to_convert = [f for f in os.listdir('.') if f.lower().endswith(supported_extensions)]
|
||||||
for file in files_to_convert:
|
for file in files_to_convert:
|
||||||
|
|||||||
Reference in New Issue
Block a user