{ "cells": [ { "cell_type": "markdown", "id": "ef265860", "metadata": {}, "source": [ "# Check locally available models" ] }, { "cell_type": "code", "execution_count": 1, "id": "b876afdb", "metadata": { "execution": { "iopub.execute_input": "2026-11-01T08:13:14.270712Z", "iopub.status.busy": "2026-11-01T08:13:14.270626Z", "iopub.status.idle": "2026-11-01T08:13:14.553239Z", "shell.execute_reply": "2026-11-01T08:13:14.552932Z" }, "scrolled": false }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Layout weights available: True\n", "Reading-order weights available: True\n", "Default CPU threads: 8\n" ] } ], "source": [ "from occular import layout_ready, reading_order_ready, Settings\n", "\n", "print(\"Layout weights available:\", layout_ready())\n", "print(\"Reading-order weights available:\", reading_order_ready())\n", "print(\"Default CPU threads:\", Settings().resolved_threads())" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.12.3" } }, "nbformat": 4, "nbformat_minor": 5 }