iThors/PDF_Tokenizer
2
PDF Token Splitter (Hugging Face Space Ready)
This repository is packaged to run as a Docker Space on Hugging Face.
How it works
- Single container runs FastAPI backend and serves the built frontend (Vite) as static files.
- API endpoints are under the same origin; no CORS setup needed on Spaces.
- Uploads are processed in-memory; results are zipped and downloadable. Jobs auto-expire after 15 minutes.
Deploy on Hugging Face Spaces (Free)
- Create a new Space → Type: Docker → Hardware: CPU Basic.
- Push this repository (connect GitHub or upload as a ZIP).
- The Space builds using the Dockerfile at repo root.
- Once started, your app is available at the Space URL.
Local dev
- Frontend:
cd frontend && npm install && npm run dev - Backend:
cd backend && uvicorn main:app --host 0.0.0.0 --port 8000
