Spaces:
Running on Zero
Running on Zero
File size: 843 Bytes
48302a0 22a37f0 48302a0 22a37f0 48302a0 22a37f0 48302a0 22a37f0 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | ---
title: Invoice Processor Worker
emoji: 🧾
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 5.44.1
app_file: app.py
pinned: false
license: apache-2.0
---
# Invoice Processor — model worker (ZeroGPU)
Claims invoice-extraction jobs from a private Cloudflare Worker API
(`POST /internal/claim`, auth via secret), downloads the PDF, extracts structured
JSON with [LiquidAI/LFM2-1.2B-Extract](https://huggingface.co/LiquidAI/LFM2-1.2B-Extract)
on a ZeroGPU slice, and posts the result back.
This Space is public but holds no data: PDFs and results live in the owner's
Cloudflare R2/D1, and the internal API requires a secret key. The UI is a
status panel only.
## Space secrets
| Secret | Purpose |
|---|---|
| `WORKER_URL` | Cloudflare Worker base URL |
| `INTERNAL_KEY` | shared secret for the Worker's /internal/* endpoints |
|