--- 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: