A newer version of the Gradio SDK is available:
5.36.2
title: Img Genwebapp
emoji: π
colorFrom: purple
colorTo: red
sdk: gradio
sdk_version: 5.7.1
app_file: app.py
pinned: true
license: mit
thumbnail: >-
https://cdn-uploads.huggingface.co/production/uploads/65ef3fe48e52c3db9036ddd3/k_I6gMDgUzIoIegJECJ9r.jpeg
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
π¨ AI Image Generator Web App
Welcome to the AI Image Generator web application! This app allows you to generate stunning photorealistic images from text prompts using cutting-edge AI technology.
π Live Demo
Check out the live version of the app hosted on Hugging Face Spaces:
AI Image Generator
π Features
- Text-to-Image Generation: Generate high-quality, photorealistic images from detailed prompts.
- Enhanced Realism: Automatically enriches prompts for better results.
- Error Handling: Robust handling for empty prompts or API issues.
- Streamlined UI: Simple and elegant interface powered by Gradio.
- Status Feedback: Displays generation status to keep you informed.
π οΈ How It Works
Input Prompt: Enter a detailed description of the image you want to generate. For example:
- "Photorealistic portrait of a woman in natural light"
- "Astronaut riding a bike on Mars during sunset"
Generate Image: Click on the β¨ Generate Image button.
View Result: The generated image will appear alongside a status message.
π» Technologies Used
- Gradio: For building the interactive web application.
- Hugging Face Inference API: For accessing the Stable Diffusion model.
- PIL (Python Imaging Library): For handling and displaying images.
π Repository
This project is version-controlled and hosted on GitHub. It is also integrated with Hugging Face Spaces for seamless updates.
You can clone the repository to explore or contribute to the codebase:
git clone https://github.com/sumityadav329/text-to-image-webapp.git
π Requirements
- Python 3.10+
- Install dependencies:
pip install -r requirements.txt
- Hugging Face Token: Set your HF_TOKEN in a
.env
file.
β‘ Quick Start
Clone the repository:
git clone https://github.com/sumityadav329/text-to-image-webapp.git cd text-to-image-webapp
Install the required packages:
pip install -r requirements.txt
Run the app locally:
gradio app.py
Access the app at http://localhost:7860.
β€οΈ Credits
- Developer: Sumit Yadav
- Hosting: Hugging Face Spaces
- Model: StabilityAI's Stable Diffusion XL
Feel free to fork, modify, or contribute to this project! π