A simple beginner-friendly web app that converts natural language prompts into images using Stable Diffusion v1.5 (runwayml/stable-diffusion-v1-5). Built with Flask and Hugging Face Diffusers, this project demonstrates how to integrate text-to-image AI models into a Python web application.
| Layer | Tools / Frameworks |
|---|---|
| Frontend | HTML, CSS, JavaScript |
| Backend | Python (Flask) |
| Model | runwayml/stable-diffusion-v1-5 (public) |
| Image Storage | Local filesystem (/generated_images) |
- ✅ Enter a custom text prompt
- ✅ Generate and display a high-quality image
- ✅ Download or save the result
- ✅ Clean and responsive UI
- ✅ Runs on CPU or GPU
bash
git clone https://github.com/ARUNAGIRINATHAN-K/text-to-image-generator.git
cd text-to-image-generator
pip install flask torch diffusers transformers accelerate