This project is a web application that uses the Google Gemini API to generate QR codes from text and allows you to download them as PNG or PDF files.
- Generate QR codes from any text.
- Download QR codes as PNG images.
- Download QR codes as PDF documents.
- Simple and intuitive web interface.
.
├── main.py
├── web
│ ├── index.html
│ ├── main.js
│ └── style.css
├── requirements.txt
└── devserver.sh
- Backend: Python, Flask
- Frontend: HTML, CSS, JavaScript
- APIs: Google Gemini API
- Python Libraries:
google-genaiPillowqrcodefpdf
-
Install dependencies:
pip install -r requirements.txt
-
Set up your environment variables:
Create a
.envfile and add your Google Gemini API key:API_KEY=your_api_key -
Run the application:
bash devserver.sh
-
Open your browser and go to
http://localhost:8080.