File size: 2,891 Bytes
28b4515 7f8e781 f5da477 28b4515 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 |
---
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](https://huggingface.co/spaces/sumityadav329/text-to-image-webapp)
---
## π 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
1. **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"*
2. **Generate Image**: Click on the **β¨ Generate Image** button.
3. **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:
```bash
git clone https://github.com/sumityadav329/text-to-image-webapp.git
```
---
## π Requirements
- Python 3.10+
- Install dependencies:
```bash
pip install -r requirements.txt
```
- Hugging Face Token: Set your **HF_TOKEN** in a `.env` file.
---
## β‘ Quick Start
1. Clone the repository:
```bash
git clone https://github.com/sumityadav329/text-to-image-webapp.git
cd text-to-image-webapp
```
2. Install the required packages:
```bash
pip install -r requirements.txt
```
3. Run the app locally:
```bash
gradio app.py
```
4. Access the app at [http://localhost:7860](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! π |