cd path/to/Google_Girl_Hackathon_SWE_2025/data_entry_from_text_fileCreate a .env.local file in the root directory of your project and add the following environment variables:
- Firebase API keys
- Google AI Key
- AI Model:
gemini-1.5-pro
Enable the Email/Password Sign-in Method in Firebase:
- Navigate to Firebase Console > Authentication > Sign-in Method.
- Enable Email/Password Authentication.
- Add your email and password to test user authentication.
Install dependencies and start the development server:
npm install
npm run dev
npm install -D tailwindcss postcss autoprefixerOpen http://localhost:3000 in your browser to view the application.
users: Stores registered user emails.invoices: Stores invoice-related data.
- The project utilizes Gemini-1.5-Pro for AI-based document processing and automation.
- Ensure your API key is configured in
.env.local.
The AI extracts the employee name and invoice number from the given text.
{"invoice_no": null, "emp_name": null}Example Input:
THE invoice_no is 123 and emp_name is abc.
A web application designed to streamline document processing for employees, featuring advanced Python-based OCR capabilities and intelligent data extraction.
- OCR-powered bill processing using Tesseract
- Natural Language Processing for data extraction
- Interactive chat interface with AI responses
- Bill management and reporting
- Data visualization and export capabilities
- Backend: Flask (Python)
- Database: PostgreSQL with SQLAlchemy
- OCR Engine: Tesseract with Python bindings
- NLP: spaCy for text processing
- Frontend: Bootstrap with dark theme
- AI Integration: Google Gemini API for chat
Make sure to set up the following environment variables:
DATABASE_URL: PostgreSQL database connection URLGEMINI_API_KEY: Google Gemini API key for chat functionalitySESSION_SECRET: Secret key for Flask sessions
- Go to the project folder:
cd path/to/Google_Girl_Hackathon_SWE_2025/data_entry_from_image_file - Install required system dependencies:
- Python 3.11
- PostgreSQL
- Tesseract OCR
- Install Python dependencies:
pip install -r requirements.txt
- Set up environment variables (mentioned above).
- Initialize the database:
flask db upgrade
- Run the application:
python main.py
Access the deployed version for image-based data entry:
🔗 Live Demo
images/invoice.png
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request

