# Prompt Recombobulator Deluxe 3000 - 9/28/2024 12:16 PM import streamlit as st st.markdown(''' # DK Tribute Educational Style Prompts for Various Themes ## 1. Interior Design Prompts **Prompt**: "๐Ÿ›‹๏ธ Design a sleek, minimalist living room with mid-century modern furniture. Feature a plush velvet sofa in emerald green, a walnut coffee table, and brass accents throughout. Large floor-to-ceiling windows bring in natural light, highlighting the indoor potted plants and abstract art on the walls." **Score**: 9/10 --- ## 2. Portrait Prompts **Prompt**: "๐Ÿง‘โ€๐Ÿฆฑ A regal portrait of a person with intricate facial tattoos, wearing a flowing silk robe. Their expression is serene, as they sit under the dappled light of an ancient oak tree. The wind gently moves their long hair, and behind them, a mountain range glows in the soft light of dawn." **Score**: 8/10 --- ## 3. Landscapes Prompts **Prompt**: "๐Ÿž๏ธ A lush valley at sunrise, where a winding river reflects the pink and gold hues of the sky. Towering cliffs stand guard over a meadow of wildflowers in full bloom, while a lone eagle soars above. Mist rises from the forest below, blending with the soft morning light." **Score**: 9.5/10 --- ## 4. Science Fiction Prompts **Prompt**: "๐Ÿ‘ฉโ€๐Ÿš€ A futuristic cityscape where towering silver skyscrapers pierce the clouds. Hovering vehicles zoom through neon-lit airways, while giant holograms advertise interplanetary travel. In the distance, a massive spaceport sends ships off into the stars, with the planetโ€™s twin moons looming overhead." **Score**: 9/10 --- ## 5. Fantasy Prompts **Prompt**: "๐Ÿงš In a mystical forest, glowing mushrooms line the path that leads to an enchanted waterfall. Fairy lights twinkle in the trees, and a grand crystal castle can be seen in the distance, half-hidden by mist. A lone wizard in a flowing robe walks towards the castle, his staff casting a soft blue glow." **Score**: 9.5/10 --- ## 6. Video Games Prompts **Prompt**: "๐Ÿ•น๏ธ A post-apocalyptic wasteland where towering, crumbling structures dominate the skyline. Players navigate through ruined cities overtaken by nature, encountering hostile robots and rogue factions. In the distance, a massive, glowing energy field threatens to engulf the last remnants of civilization." **Score**: 8.5/10 --- ''') import streamlit as st from transformers import pipeline, set_seed import random # Set random seed to make results reproducible (but where's the fun in that? ๐ŸŽฒ) set_seed(42) # Load the GPT-2 model for text generation # ๐Ÿค– Initializing the AI overlord... I mean, assistant! generator = pipeline('text-generation', model='gpt2') # Title of the app st.title("๐Ÿ“ Prompt Recombobulator Deluxe 3000") # Description st.write("Welcome to the Prompt Recombobulator Deluxe 3000! ๐Ÿค–โœจ") st.write("Feeling uninspired? Let's mash some prompts together and see what creative chaos ensues! ๐Ÿš€") # List of topics topics = [ "Interior Design", "Portrait", "Landscapes", "Science Fiction", "Fantasy", "Video Games", "Cinema", "Graphic Design", "Illustration", "Architecture", "Fashion Design", "Food" ] # Sample prompts sample_prompts = { "Interior Design": "๐Ÿ›‹๏ธ Design a sleek, minimalist living room with mid-century modern furniture. Feature a plush velvet sofa in emerald green, a walnut coffee table, and brass accents throughout. Large floor-to-ceiling windows bring in natural light, highlighting the indoor potted plants and abstract art on the walls.", "Portrait": "๐Ÿง‘โ€๐Ÿฆฑ A regal portrait of a person with intricate facial tattoos, wearing a flowing silk robe. Their expression is serene, as they sit under the dappled light of an ancient oak tree. The wind gently moves their long hair, and behind them, a mountain range glows in the soft light of dawn.", "Landscapes": "๐Ÿž๏ธ A lush valley at sunrise, where a winding river reflects the pink and gold hues of the sky. Towering cliffs stand guard over a meadow of wildflowers in full bloom, while a lone eagle soars above. Mist rises from the forest below, blending with the soft morning light.", "Science Fiction": "๐Ÿ‘ฉโ€๐Ÿš€ A futuristic cityscape where towering silver skyscrapers pierce the clouds. Hovering vehicles zoom through neon-lit airways, while giant holograms advertise interplanetary travel. In the distance, a massive spaceport sends ships off into the stars, with the planetโ€™s twin moons looming overhead.", "Fantasy": "๐Ÿงš In a mystical forest, glowing mushrooms line the path that leads to an enchanted waterfall. Fairy lights twinkle in the trees, and a grand crystal castle can be seen in the distance, half-hidden by mist. A lone wizard in a flowing robe walks towards the castle, his staff casting a soft blue glow.", "Video Games": "๐Ÿ•น๏ธ A post-apocalyptic wasteland where towering, crumbling structures dominate the skyline. Players navigate through ruined cities overtaken by nature, encountering hostile robots and rogue factions. In the distance, a massive, glowing energy field threatens to engulf the last remnants of civilization.", "Cinema": "๐ŸŽฌ A dramatic scene where a lone detective walks through the rain-soaked streets of 1940s New York. Neon signs flicker in the background, and shadows hide the faces of passersby. The detective's trench coat and fedora are illuminated by the dim glow of street lamps as he approaches a smoky jazz club.", "Graphic Design": "๐ŸŽจ Create a bold and modern poster for an upcoming tech conference. Use geometric shapes, vibrant gradients, and minimalistic typography. Incorporate icons representing AI, blockchain, and cybersecurity in a cohesive layout that grabs attention.", "Illustration": "๐Ÿ–Œ๏ธ An imaginative illustration of a whimsical treehouse village connected by rope bridges. Each house is uniquely shaped, resembling mushrooms, teapots, and lanterns. Forest creatures like foxes and rabbits can be seen going about their day, adding a touch of magic to the scene.", "Architecture": "๐Ÿ›๏ธ Design a futuristic eco-friendly skyscraper that incorporates vertical gardens and renewable energy sources. The building features sleek glass surfaces, wind turbines integrated into the structure, and open-air terraces that promote green living in an urban environment.", "Fashion Design": "๐Ÿ‘— Create a haute couture gown inspired by the ocean. The dress flows like waves, with layers of iridescent fabrics resembling shimmering water. Embellishments include pearls, seashells, and beadwork that mimic coral reefs. The design should evoke the beauty and mystery of the deep sea.", "Food": "๐Ÿฐ A decadent dessert table featuring an array of artisanal pastries. Macarons in pastel colors, miniature tarts topped with fresh berries, and a towering chocolate fountain surrounded by exotic fruits. The setup is elegant and enticing, perfect for a luxurious afternoon tea." } # Select a topic topic = st.selectbox("Choose a theme ๐ŸŽจ:", topics) # Display the sample prompt st.write("Here's a sample prompt for the selected theme:") st.write(sample_prompts[topic]) # User input prompt user_prompt = st.text_area("Or write your own prompt here:", sample_prompts[topic]) # Function to generate a new prompt def generate_prompt(prompt_text): """Generate a new prompt based on the user's input prompt.""" # ๐Ÿค– Let's see what the AI chef cooks up! ๐Ÿ‘จโ€๐Ÿณ generated = generator(prompt_text, max_length=150, num_return_sequences=1) return generated[0]['generated_text'] # Generate button if st.button("Generate New Prompt ๐ŸŽฒ"): # Add a fun message st.write("Hold on to your socks, generating awesomeness... ๐Ÿงฆโœจ") with st.spinner("Cooking up some creative stew... ๐Ÿฅฃ"): new_prompt = generate_prompt(user_prompt) st.success("Here's your recombobulated prompt! ๐ŸŽ‰") st.write(new_prompt) # Add an amusing comment based on topic if topic == "Science Fiction": st.write("๐Ÿš€ May the prompts be ever in your favor!") elif topic == "Fantasy": st.write("๐Ÿง™โ€โ™‚๏ธ You shall not pass... without a new prompt!") elif topic == "Video Games": st.write("๐ŸŽฎ Achievement unlocked: New Prompt Generated!") elif topic == "Interior Design": st.write("๐Ÿ›‹๏ธ Home is where the prompt is.") elif topic == "Portrait": st.write("๐Ÿ–Œ๏ธ A picture is worth a thousand prompts.") elif topic == "Landscapes": st.write("๐ŸŒ„ Keep calm and wander on.") elif topic == "Cinema": st.write("๐ŸŽฌ That's a wrap on your new prompt!") elif topic == "Graphic Design": st.write("๐ŸŽจ Designing dreams one prompt at a time.") elif topic == "Illustration": st.write("๐Ÿ–๏ธ Sketching out some prompt perfection!") elif topic == "Architecture": st.write("๐Ÿ—๏ธ Building the future, one prompt at a time.") elif topic == "Fashion Design": st.write("๐Ÿ‘  Your prompt just hit the runway!") elif topic == "Food": st.write("๐Ÿด Bon appรฉtit! Your prompt is served.") else: st.write("โœจ Enjoy your new prompt!") # Footer st.write("Made with โค๏ธ and a dash of code magic. โœจ")