Skip to content

dipanshurdev/ai-snaps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽจ AI Snaps

A powerful Streamlit app for generating professional product ads using Bria AI's advanced image generation and manipulation APIs.

๐ŸŒŸ Features

  • ๐Ÿ–ผ๏ธ Generate HD product images from text prompts
  • ๐ŸŽฏ Remove backgrounds with custom colors
  • ๐ŸŒ… Add realistic shadows
  • ๐Ÿ  Create lifestyle shots with text or reference images
  • โœจ AI-powered prompt enhancement
  • ๐Ÿ“ Optional CTA text overlay
  • ๐ŸŽฎ Intuitive UI controls
  • ๐Ÿ’พ Easy image download

๐Ÿš€ Quick Start

  1. Clone the repository:
git clone https://github.com/yourusername/ai-snaps.git
cd ai-snap
  1. Install dependencies:
pip install -r requirements.txt
  1. Create a .env file in the root directory:
BRIA_API_KEY=your_api_key_here
  1. Run the app:
streamlit run app.py

๐Ÿ’ก Usage

  1. Enter a product description or upload an image
  2. Configure generation options in the sidebar:
    • Enhance prompt with AI
    • Remove background
    • Add shadows
    • Generate lifestyle shots
  3. Adjust advanced settings like background color and shadow intensity
  4. Click "Generate Ad" to create your images
  5. Download the results
# ai snaps

Lightweight Streamlit tools for generating professional product ad images using AI-powered image generation and editing.

## Features

- Generate HD product images from text prompts
- Remove or replace backgrounds
- Add realistic shadows and CTAs
- Create lifestyle shots from text or reference images
- Optional prompt enhancement via AI
- Download generated images

## Quick Start

1. Clone the repository:
```bash
git clone https://github.com/dipanshurdev/ai-snaps.git
cd ai-snaps
  1. Create and activate a virtual environment:
python -m venv .venv
.\\.venv\\Scripts\\Activate.ps1
  1. Install dependencies:
pip install -r requirements.txt
  1. Create a .env file in the project root and add any required API keys:
BRIA_API_KEY=your_api_key_here
  1. Run the app (Streamlit):
streamlit run app.py

Usage

  1. Provide a product description or upload an image in the UI.
  2. Use the sidebar to adjust generation options (prompt enhancement, background removal, shadows, etc.).
  3. Click Generate to create images and download results.

Configuration

  • Prompt enhancement and generation settings are available in the UI.
  • Store secrets in a local .env file (do not commit) and use GitHub Secrets for CI.

Contributing

Contributions are welcome. Suggested workflow:

  1. Fork the repo
  2. Create a feature branch: git checkout -b feature/your-feature
  3. Commit changes: git commit -m "Add feature"
  4. Push and open a PR

License

This project is licensed under the MIT License โ€” see the LICENSE file.

Acknowledgments

  • Bria AI for image generation APIs
  • Streamlit for the web UI

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages