Spaces:
Sleeping
Sleeping
|
Download README.md from VsinghiAssociates/Scanly: direct link, hf CLI and curl.
- Browser
- Download file 1.84 kB
-
https://huggingface.co/spaces/VsinghiAssociates/Scanly/resolve/main/README.md
- Command line
-
hf download hf://spaces/VsinghiAssociates/Scanly/README.md
-
curl -L -o README.md https://huggingface.co/spaces/VsinghiAssociates/Scanly/resolve/main/README.md
1.84 kB
metadata
title: Document Converter Pro
emoji: 📄
colorFrom: blue
colorTo: green
sdk: docker
app_port: 7860
Document Converter Pro
Document Converter Pro is a Flask web app for:
- PDF OCR conversion with
ocrmypdf - Excel to CSV conversion with
pandasandopenpyxl - Fast default OCR mode that skips pages that already contain text
- Streaming
.xlsxconversion to reduce memory use on large workbooks
Important: GitHub Pages will not run this app
This project uses Python and system OCR tools, so it cannot be hosted directly on GitHub Pages. GitHub Pages only serves static HTML/CSS/JavaScript.
Use GitHub as the source repository, then deploy the app to a Python/container host such as Hugging Face Spaces, Render, Fly.io, Railway, or any Docker-capable server.
Deploy from GitHub to Hugging Face Spaces
- Push this folder to a GitHub repository.
- Create a Hugging Face Space.
- Select Docker as the Space SDK.
- In your GitHub repository settings, add:
- Repository secret
HF_TOKEN: a Hugging Face access token with write access - Repository variable
HF_SPACE: your Space id, for exampleyourname/document-converter-pro
- Repository secret
- Push to the
mainbranch, or run the Deploy to Hugging Face Space workflow manually from the GitHub Actions tab.
The included Dockerfile installs the required OCR system packages and starts app.py on port 7860.
Run locally
Install system dependencies first:
ocrmypdftesseract-ocrpoppler-utilsghostscriptqpdf
Then run:
pip install -r requirements.txt
python app.py
Open http://localhost:7860.
Files
app.py: deployable Flask appDockerfile: container build for deploymentrequirements.txt: Python dependencies.github/workflows/deploy-huggingface.yml: optional GitHub Actions deployment workflow