Tuesday, June 3, 2025

#4 Form Filling Agent with Flask Front end

 ✅ Your ready-to-run ZIP file is available here:

Download form_filler_agent.zip

https://drive.google.com/file/d/110iEVgiA1Jyijr95qiZ3N9yqWjKqv1BL/view?usp=sharing

📦 What's Inside:

  • app.py – Flask frontend for uploading PDFs or text files and entering a form URL.

  • agent.py – Main logic for:

    • Extracting text from PDFs.

    • Calling the Ollama model (lemma) to generate field values.

    • Filling out the web form using Selenium.

  • templates/index.html – Upload form page.

🛠 Requirements

Install dependencies with:

pip install flask selenium pdfplumber requests

Make sure:

  • ChromeDriver is installed and accessible in PATH.

  • Ollama is running the lemma model locally:

    ollama run lemma
    

▶️ To Run the App

python app.py

Then open: http://localhost:5000

Let me know if you want:

  • Support for DOCX

  • Enhanced field mapping (e.g. based on labels next to fields)

  • Dockerized version

I'm happy to help you extend this!

No comments:

Post a Comment

#6 Form Filling Multimodal

 ✅ Here's your fully upgraded multimodal form-filling agent : 🔗 Download form_filler_agent_final.zip https://drive.google.com/file/d/1...