Skip to content

gamesbyBAE/mistral-ocr-with-embedded-images

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mistral OCR Wrapper

A minimal Mistral API wrapper to OCR images and PDF with images embedded in the resultant markdown.

Setup

1. Install dependencies

pip install -r requirements.txt

2. Setup environment variables

Create a .env file in the project root and paste the following:

# Put your Mistral API key here
MISTRAL_API_KEY=YOUR_API_KEY_HERE

# Optional: override model name
MISTRAL_OCR_MODEL=mistral-ocr-latest

3. Run the example script

python src/main.py

Files

Official Resources

Source of sample files


Author: Mayank 'DerperDoing' Bagchi

About

A minimal Mistral API wrapper to OCR images and PDFs with images embedded in the markdown result.

Topics

Resources

Stars

Watchers

Forks

Languages