File size: 4,118 Bytes
eeb7bb5 7c1b343 57eccf2 679fea5 57eccf2 679fea5 57eccf2 679fea5 57eccf2 679fea5 57eccf2 679fea5 7c1b343 57eccf2 7c1b343 57eccf2 679fea5 7c1b343 57eccf2 679fea5 |
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 |
import streamlit as st
from PIL import Image
# Load images
logo_image = Image.open("img/fireworksai_logo.png")
parameters_1_image = Image.open("img/parameters_1.png")
parameters_2_image = Image.open("img/parameters_2.png")
parameters_3_image = Image.open("img/parameters_3.png")
parameters_4_image = Image.open("img/parameters_4.png")
card_with_message_1_image = Image.open("img/card_with_message_1.png")
card_with_message_2_image = Image.open("img/card_with_message_2.png")
# Fireworks Logo at the top
st.image(logo_image)
# Title of the app
st.title("π¨ Flux Holiday Magic: Custom Card Creator")
# Description using Streamlit text and markdown
st.markdown("""
Welcome to the ultimate holiday card design experience! πβοΈ
Powered by **Flux models** through **Fireworks API**, this app lets you effortlessly create stunning, personalized holiday cards with just a few clicks. Hereβs what each page allows you to do:
""")
# Overview of the pages with descriptions
# Divider for sections
st.divider()
st.markdown("""
### 1. **Generate Holiday Postcard: π FLUX-tastic Holiday Postcard Generator π¨**
Get ready to make your holiday greetings pop with a personalized, AI-generated postcard! π
π¨ No more boring, store-bought cards. Customize a dazzling holiday scene with your own snazzy message and festive designs, brought to life by **FLUX models**.
**How it works:**
- Choose a holiday-themed prompt or write your own π
- Select a FLUX model to bring your vision to life β¨
- Customize with fonts, text backgrounds, and colors π¨
- Generate and share your festive masterpiece with friends and family π¬
""")
st.markdown("""

""")
# Divider for sections
st.divider()
st.markdown("""
### 2. **Generate Multiple Holiday Borders: π¨ Holiday Multi-Card Generator π¨**
This page is your first stop for crafting a holiday card with multiple festive border designs. π Play around with different styles, prompts, and parameters to design the perfect card border before adding your message in the next step.
**How it works:**
- πΌοΈ **Upload Your Image**: Choose the image that will be the centerpiece of your card.
- βοΈ **Crop & Adjust**: Fine-tune the crop to highlight the most important parts of your image.
- π‘ **Choose Your Style**: Select from festive borders or input your own custom prompt.
- βοΈ **Tweak**: Experiment with guidance scales, seeds, inference steps, and more for the perfect aesthetic.
- π **Preview & Download**: See your designs, tweak them, and download them as a ZIP file.
After perfecting your border, head over to Part B to add a personal message!
""")
col1, col2 = st.columns(2)
with col1:
st.image(parameters_1_image)
st.image(parameters_3_image)
with col2:
st.image(parameters_2_image)
st.image(parameters_4_image)
# Divider for sections
st.divider()
st.markdown("""
### 3. **Customize Holiday Borders: π Holiday Card Customizer π
**
β¨ Welcome to the final part of your holiday card creation journey! Itβs time to add a festive border and a personal message to your card.
**How it works:**
- π **Upload Your Image**: Select a photo or design to be the star of your holiday card.
- β¨ **Design Your Holiday Border**: Choose from seasonal prompts or create a unique custom border.
- π **Add Your Personal Message**: Write a heartfelt, funny, or warm message to spread holiday cheer.
- π¦ **Download Your Finished Card**: Ready to send to friends and family as a gift of joy! π
""")
col3, col4 = st.columns(2)
with col3:
st.image(card_with_message_1_image)
with col4:
st.image(card_with_message_2_image)
# Footer Section
st.divider()
st.markdown(
"""
Thank you for using the Holiday Card Generator powered by **Fireworks**! π
Share your creations with the world and spread the holiday cheer!
Happy Holidays from the **Fireworks Team**. π₯
"""
) |