A Streamlit app for generating images using Google's Gemini Imagen model, with automatic gallery publishing to GitHub Pages.
- Generate images using Gemini 3 Pro Image Preview
- Clean, responsive gallery interface
- Automatic deployment to GitHub Pages
- Stores prompts alongside generated images
- Install dependencies:
pip install streamlit google-genai pillow- Run the Streamlit app:
streamlit run imagen.py- Generate images - they'll automatically be saved to
docs/images/and added to the gallery
The gallery is automatically deployed to GitHub Pages whenever you push images to the docs/ directory.
To enable GitHub Pages:
- Go to your repository Settings
- Navigate to Pages
- Set Source to "GitHub Actions"
Your gallery will be available at: https://<username>.github.io/<repo-name>/
- Enter a prompt in the Streamlit app
- Click "Generate Image"
- Image is saved to
docs/images/with timestamp docs/gallery.jsonis updated with prompt and metadata- Commit and push changes
- GitHub Actions deploys to Pages automatically