Writing Skills
writing-skills
效率与协作技能,来自 obra/superpowers,查看原文获取完整用途和操作说明。
interactive-apps-and-api【部署与运维】Guides LaTeX-OCR GUI, FastAPI, Streamlit, and Docker service workflows for interactive or deployed pix2tex OCR.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the user wants the latexocr desktop GUI, screenshot
capture, formatted output, the FastAPI service, Streamlit demo, Docker API
container, or optional dependency troubleshooting for these interactive routes.
Install API dependencies:
pip install "pix2tex[api]"
Run the API app directly when model downloads and long-lived processes are allowed:
uvicorn pix2tex.api.app:app --host 0.0.0.0 --port 8502
The app exposes / for health, /predict/ for image uploads, and /bytes/ for
raw byte uploads. Both prediction endpoints expect multipart field name file.
Install GUI dependencies:
pip install "pix2tex[gui]"
latexocr
Use SCREENSHOT_TOOL=grim, SCREENSHOT_TOOL=spectacle,
SCREENSHOT_TOOL=gnome-screenshot, or SCREENSHOT_TOOL=pil to override the
screenshot backend when auto-detection picks the wrong one.