Docker-JEE / README.md
Tummala Pavan
Add Space metadata
666f60d
|
Raw
History Blame Contribute Delete
833 Bytes
metadata
title: Docker JEE
emoji: 📝
colorFrom: blue
colorTo: green
sdk: docker
pinned: false

JEE PDF Extraction API

FastAPI service for deterministic Linux PDF extraction. It uses Poppler and Pillow to crop question images, then returns a ZIP containing:

  • metadata.json
  • q-1.png, q-2.png, ...

Local Run

docker build -t jee-pdf-extractor .
docker run --rm -p 7860:7860 -e ALLOWED_ORIGINS=http://localhost:5173 jee-pdf-extractor

Hugging Face Space

Create a new Docker Space and upload the contents of this folder.

Set Space variables:

ALLOWED_ORIGINS=https://your-frontend-domain.vercel.app,http://localhost:5173
EXTRACTION_TIMEOUT_SECONDS=900

Health check:

https://YOUR-SPACE.hf.space/health

Frontend env:

VITE_EXTRACTOR_API_URL=https://YOUR-SPACE.hf.space