CoolFace
Apppublic

fireworks-ai/ugly-holiday-card-generator

sourceHugging Facemitupdated 2y agoView on Hugging Face
1likes
App README

๐ŸŽ‰ 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:

  1. 1.Prompt & Parameter Ideation:
  2. 2.Select or enter custom prompts for your holiday card's border.
  3. 3.Adjust advanced parameters like guidance scale and inference steps to fine-tune your card.
  4. 4.Crop your image and preview your card before moving to the final stage. ๐ŸŽ„๐Ÿ“ธ
  1. 1.Personalization & Message Customization:
  2. 2.Add a custom holiday message with a variety of fonts and sizes.
  3. 3.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
  1. 1.Clone the Repository:
bash
   git clone https://github.com/fw-ai/examples.git
  1. 1.Navigate to the Specific Project Sub-directory:
bash
   cd learn/inference/ugly-holiday-card-generator
  1. 1.Set up a Virtual Environment (Optional but Recommended):
bash
   python3 -m venv venv
   source venv/bin/activate  # On macOS/Linux
   .\venv\Scripts\activate  # On Windows
  1. 1.Install Required Dependencies:
bash
   pip install -r requirements.txt
  1. 1.Configure the `.env` File: Copy the .env.template file and rename it to .env in the project directory:
bash
   cp .env.template env/.env

Add your FIREWORKS_API_KEY:

bash
   FIREWORKS_API_KEY=<your_fireworks_api_key>
  1. 1.Run the Streamlit App:
bash
   streamlit run app.py
  1. 1.Explore the App:
  2. 2.Open the app in your browser via the URL provided by Streamlit (typically http://localhost:8501).
  3. 3.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! ๐ŸŽ