updated docs
This commit is contained in:
parent
07a28d4f00
commit
b0044720da
1 changed files with 12 additions and 0 deletions
12
README.md
12
README.md
|
|
@ -97,6 +97,18 @@ result = md.convert("test.pdf")
|
||||||
print(result.text_content)
|
print(result.text_content)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
MarkItDown also supports converting file objects directly:
|
||||||
|
|
||||||
|
```python
|
||||||
|
from markitdown import MarkItDown
|
||||||
|
|
||||||
|
md = MarkItDown()
|
||||||
|
path = "test.docx"
|
||||||
|
with open(path, 'rb') as file:
|
||||||
|
result = md.convert(file, file_extension=".docx")
|
||||||
|
print(result.text_content)
|
||||||
|
```
|
||||||
|
|
||||||
To use Large Language Models for image descriptions, provide `llm_client` and `llm_model`:
|
To use Large Language Models for image descriptions, provide `llm_client` and `llm_model`:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue