Skip to content

Instantly share code, notes, and snippets.

View diversen's full-sized avatar

Dennis Iversen diversen

View GitHub Profile
@diversen
diversen / mistral-ocr.py
Last active February 11, 2026 13:15
Mistral OCR
#!/usr/bin/env -S uv run --script --no-project
# /// script
# requires-python = "==3.11.*"
# dependencies = [
# "mistralai>=1.0.0",
# ]
# ///
#
# usage: mistral-ocr.py input.jpg output-dir/