fireworks-ai/ugly-holiday-card-generator
๐ Ugly Holiday Card Generator ๐
๐ Welcome to the Ugly Holiday Card Generator! ๐โ๏ธ
This fun and festive app allows you to create your own ugly holiday cards using AI-generated borders, custom messages, and creative controls to make your card as unique (and ugly!) as possible. Powered by Flux models on Fireworks AI, this app helps you get creative with your holiday greetings. ๐ ๐โจ
๐ฏ Project: Ugly Holiday Card Generator
๐ ๏ธ Overview
The Ugly Holiday Card Generator is an interactive tool built with Streamlit that allows users to upload images, adjust parameters, and generate customized holiday cards with AI-generated borders. Whether you want to add snowflakes, Christmas lights, or even fireworks, this app lets you craft the perfect holiday card to share with your friends and family! ๐
๐จ Features
- Custom Borders: Choose from a variety of holiday-themed prompts like festive snowflakes, cozy fireplaces, and colorful fireworks! Or create your own custom border prompt! ๐ผ๏ธ๐
- Crop It: Adjust your imageโs crop to focus on the best part of your photo. โ๏ธ
- Personalized Message: Add your own holiday message in different fonts and sizes to give it that final personal touch. โ๏ธ๐
- Save & Download: Easily download your masterpiece with just a click and share it with the world! ๐๐
๐ App Structure
The app is divided into two parts:
- Prompt & Parameter Ideation:
- Select or enter custom prompts for your holiday card's border.
- Adjust advanced parameters like guidance scale and inference steps to fine-tune your card.
- Crop your image and preview your card before moving to the final stage. ๐๐ธ
- Personalization & Message Customization:
- Add a custom holiday message with a variety of fonts and sizes.
- View the final card with your personalized message and download it in PNG format. ๐ผ๏ธ๐
๐ป Setup and Installation
๐ Prerequisites
- Python 3.x installed on your machine.
- A Fireworks AI API key, which you can obtain by signing up at Fireworks AI.
- Install Streamlit and the Fireworks Python Client.
๐ฅ Step-by-Step Setup
- Clone the Repository:
git clone https://github.com/fw-ai/examples.git- Navigate to the Specific Project Sub-directory:
cd learn/inference/ugly-holiday-card-generator- Set up a Virtual Environment (Optional but Recommended):
python3 -m venv venv
source venv/bin/activate # On macOS/Linux
.\venv\Scripts\activate # On Windows- Install Required Dependencies:
pip install -r requirements.txt- Configure the `.env` File: Copy the
.env.templatefile and rename it to.envin the project directory:
cp .env.template env/.envAdd your FIREWORKS_API_KEY:
FIREWORKS_API_KEY=<your_fireworks_api_key>- Run the Streamlit App:
streamlit run app.py- Explore the App:
- Open the app in your browser via the URL provided by Streamlit (typically
http://localhost:8501). - Navigate between the prompt ideation and message customization stages. โจ๐จ
๐ Example Prompts
Here are some example holiday prompts to try in the app:
- "A border of festive snowflakes and winter patterns"
- "A border of cozy Christmas ornaments and lights"
- "A border of New Year's Eve fireworks with stars and confetti"
๐ Fireworks API Documentation
To learn more about querying models and interacting with the Fireworks API, check out the Fireworks API Documentation.
๐ค Contributing
Contributions are welcome! Feel free to fork the repository, make changes, and submit a pull request. ๐จ๐
๐ License
This project is licensed under the MIT License.
๐ Happy Holidays and Enjoy Creating Your Cards! ๐
