Python Project: AI Image Generator App
Build a Tinder-style AI image generator in Python with Streamlit and Google’s Gemini API: set up the project with uv, design a clean Streamlit UI (prompt, image uploader, generate button), and transform uploaded photos using Gemini 2.5 Flash Image Preview—secure your API key, parse image outputs, handle long-running tasks with spinners, and render before/after previews in a responsive two-column layout. --- 🔗 *Links* - 💻 Code from the video: https://github.com/alejandro-ao/gemini-image-generation-app - 🔥 Use this app for FREE: https://gemini-image-generation-app.onrender.com/ - 🚀 Join my FREE community: https://learn.alejandro-ao.com - ❤️ Support me: [Buy me a coffee or beer](https://link.alejandro-ao.com/l83gNq) - ✉️ Channel & AI Engineering newsletter: https://link.alejandro-ao.com/AIIguB --- 🤓 *Topics Covered* - Setup: Python + Streamlit, uv project setup, app scaffolding - UI Components: sidebar API key input, prompt text area, file uploader, generate button, two-column preview - User Experience: loading spinner, conditional rendering, error handling, success/warning states - Image Generation: Gemini 2.5 Flash Preview, google-genai SDK, image I/O with Pillow, API response handling - Practical Use: prompt engineering examples, portfolio-ready AI app combining Streamlit + Gemini API --- ⏰ *Timestamps* 0:00:00 - Intro 0:00:53 - Project overview & demo 0:01:00 - Project setup with uv (init) 0:01:51 - Add dependencies & run Streamlit 0:02:54 - Scaffold the Streamlit app & page config 0:04:39 - Sidebar: API key input (session state/env var) 0:07:15 - Prompt text area & file uploader 0:11:07 - Layout: two-column design, show uploaded image 0:13:45 - Call Gemini 2.5 Flash Image Preview & render result 0:19:24 - Conclusion