Consent Guardian is a web application that interprets and translates images of consent forms into simpler, easier to understand language for patients of all ages.
Built with ReactJS, Flask, and Gemini AI
Ensure you have the following installed:
Node.js(v16+ recommended)npm(comes with Node.js)- Python (3.8+)
- Google Gemini AI API Key (for AI-powered document summarization)
Tesseract-OCR(for image text extraction)poppler-utils(for PDF image conversion)
Run
npm installor otherwise,
npm install react react-dom @types/react @types/react-domInstall Python dependencies
pip install -r requirements.txtClone the repository
gh repo clone julesiet/consent-guardianCreate a virtual environment (recommended)
python -m venv venv
source venv/bin/activate # Mac/Linux
venv\Scripts\activate # WindowsSet up your Gemini AI API key
- Create a
.envfile in the backend folder - Add this line inside:
GEMINI_API_KEY=your_api_key_hereStart the flask server in /flask_Backend/services/
python backend_main.pyNavigate to the frontend
cd finallyStart Consent Guardian app
npm run devand open the link given.
/project-root
│── /frontend # React app (file upload)
│ ├── src/
│ ├── public/
│ ├── package.json
│ ├── FileUploader.tsx
│── /backend # Flask backend
│ ├── app.py # Main Flask server
│ ├── gemini_services.py
│ ├── .env # API key (not in Git)
│ ├── requirements.txt
│── README.mdThis project is licensed under the MIT License.