|
|
--- |
|
|
title: AUTOFILL FORM |
|
|
emoji: π» |
|
|
colorFrom: blue |
|
|
colorTo: red |
|
|
sdk: gradio |
|
|
sdk_version: 5.49.1 |
|
|
app_file: app.py |
|
|
pinned: false |
|
|
short_description: IT IS OCR+GEMINI PIPELINE FOR AUTOMATIC FORMFILLING |
|
|
--- |
|
|
|
|
|
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference |
|
|
# π§ AutoFill Form Extractor |
|
|
|
|
|
This app extracts structured information from documents (like PAN Card forms) using: |
|
|
- **OCR (pytesseract)** for text extraction |
|
|
- **Gemini 1.5 Flash** for intelligent field parsing |
|
|
|
|
|
## π How to Use |
|
|
1. Upload a PDF document (e.g., PAN Card) |
|
|
2. Select the form type |
|
|
3. View the extracted JSON output |
|
|
|
|
|
## π§© Tech Stack |
|
|
- Python + Gradio |
|
|
- Google Gemini API |
|
|
- Tesseract OCR |
|
|
- pdf2image |
|
|
|
|
|
## π Environment Variable |
|
|
Set your Gemini API key in Hugging Face Space β Settings β Variables and Secrets: |
|
|
|