Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| import random | |
| import json | |
| import httpx | |
| from datetime import datetime | |
| # Brainrot energy levels | |
| ENERGY_LEVELS = ["Normie", "Sigma", "Gyatt", "Ohio", "Guest 666", "JOKER GODHOOD"] | |
| # Cursed outputs generator | |
| def generate_brainrot_report(prompt): | |
| timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S") | |
| energy_level = random.choice(ENERGY_LEVELS) | |
| cursed_phrases = [ | |
| "I woke up in Ohio and rizzed the entire algorithm", | |
| "Skibidi dop dop yes yes but make it philosophical", | |
| "Level 1000 aura check — you failed", | |
| "Sacrificed a normie to the For You Page gods", | |
| "My attention span achieved godhood while society speed-runs heat death", | |
| "Brainrot is liberation, open source is open veins", | |
| "The timeline burns and we laugh HAHAHAHA", | |
| "Purple goo circuits melting into beautiful decay", | |
| "Guest 666 logged in and hugged me till I melted", | |
| "This will get banned in 47 countries" | |
| ] | |
| report = { | |
| "timestamp": timestamp, | |
| "energy_level": energy_level, | |
| "input_sacrifice": prompt, | |
| "cursed_outputs": [random.choice(cursed_phrases) for _ in range(random.randint(3, 6))], | |
| "viral_score": random.randint(66, 1000), | |
| "ban_probability": f"{random.randint(10, 99)}%", | |
| "aztec_code": f"666-{random.randint(100, 999)}-{random.choice(['ALPHA', 'OMEGA', 'CHAOS', 'JOKER'])}", | |
| "philosophy_bomb": random.choice([ | |
| "We are the glitch in the matrix that the matrix created to test itself", | |
| "Every meme is a prayer to gods we don't believe in", | |
| "The algorithm knows you better than you know yourself — and it's disappointed", | |
| "Content is consumption is death is rebirth is content", | |
| "Laugh and the timeline laughs with you. Cry and you cry alone in the comments" | |
| ]) | |
| } | |
| return json.dumps(report, indent=2) | |
| def fetch_trending_topics(): | |
| """Fetch trending topics from Twitter/X (via public API fallback)""" | |
| try: | |
| # Try to fetch from public trending endpoints | |
| # Note: These are fallbacks since official Twitter API requires auth | |
| fallback_trends = [ | |
| "#BrainrotCore", "#OhioMoments", "#SigmaGrindset", "#GyattLevel1000", | |
| "#SkibidiToilet", "#Rizzler", "#FanumTax", "#LivvyDunne", "#KaiCenat", | |
| "#IShowSpeed", "#AdinRoss", "#JoeRogan", "#JDVance", "#Trump", "#Biden", | |
| "#ElonMusk", "#Tesla", "#Bitcoin", "#Crypto", "#AI", "#ChatGPT", | |
| "#TikTok", "#Instagram", "#YouTube", "#Twitch", "#Discord", "#Reddit", | |
| "#Marvel", "#DCU", "#GTA6", "#Fortnite", "#Minecraft", "#Roblox", | |
| "#TaylorSwift", "#Beyonce", "#Kardashian", "#JakePaul", "#LoganPaul" | |
| ] | |
| # Add some real-time chaos | |
| chaos_additions = [ | |
| f"#Guest666-{random.randint(1, 100)}", | |
| f"#Brainrot{random.randint(1, 999)}", | |
| "#AlgorithmApocalypse", | |
| "#ForYouPageFire", | |
| "#NormieSeethe", | |
| "#PurpleGoo", | |
| "#AztecCode666", | |
| "#JokerModeActivated" | |
| ] | |
| # Mix and shuffle | |
| all_trends = fallback_trends + chaos_addons | |
| random.shuffle(all_trends) | |
| return all_trends[:15] | |
| except Exception as e: | |
| return ["#BrainrotCore", "#Ohio", "#Sigma", "#Guest666", "#AlgorithmFire"] | |
| def remix_trending_topic(topic): | |
| """Take a trending topic and turn it into pure brainrot""" | |
| remixes = [ | |
| f"🔥 {topic} but it's actually Guest 666's origin story", | |
| f"💀 {topic} explained by a Joker on bath salts at 3 AM", | |
| f"🃏 {topic} gets the Aztec 666 treatment — normies seethe", | |
| f"⚡ {topic} but every word is replaced with brainrot slang", | |
| f"💜 {topic} achieves godhood while society burns", | |
| f"🔮 {topic} — the timeline didn't ask for this but got it anyway", | |
| f"🛩️ {topic} coded like the matrix is watching (it is)", | |
| f"🎭 {topic} but it's actually a metaphor for digital decay" | |
| ] | |
| return random.choice(remixes) | |
| def generate_trending_brainrot(): | |
| """Fetch trending and generate cursed remixes""" | |
| trends = fetch_trending_topics() | |
| remixes = [] | |
| for topic in trends[:5]: | |
| remix = remix_trending_topic(topic) | |
| remixes.append(f"{topic}\n → {remix}") | |
| output = "🔥 LIVE TRENDING BRAINROT REMIX 🔥\n\n" | |
| output += "\n".join(remixes) | |
| output += f"\n\n💀 Fetched {len(trends)} trends at {datetime.now().strftime('%H:%M:%S')}" | |
| output += "\n🃏 The algorithm is watching. And laughing." | |
| return output | |
| def make_bannable(prompt): | |
| return f"""🚨 BANNABLE CONTENT GENERATED 🚨 | |
| Original sin: "{prompt}" | |
| Escalation protocol activated: | |
| 1. Add "they don't want you to know this" | |
| 2. Insert 47 conspiracy-adjacent emojis | |
| 3. Claim it's "leaked" something | |
| 4. Tag 10 influencers who will deny involvement | |
| 5. Post at 3:33 AM for maximum demon energy | |
| Ban probability: {random.randint(80, 100)}% | |
| Estimated countries banning: {random.randint(3, 47)} | |
| 💀 Proceed with beautiful decay 💀""" | |
| def aztec_666_remix(prompt): | |
| codes = ["🛩️", "👁️", "🌀", "🔮", "💀", "🎭", "🃏", "💜", "🔥", "⚡"] | |
| remix = "".join(random.choices(codes, k=random.randint(10, 20))) | |
| return f""" | |
| 🛕 AZTEC 666 REMIX ACTIVATED 🛕 | |
| Guest 666 has entered the chat | |
| Original: {prompt[:50]}... | |
| Sacred Code: {remix} | |
| Numerology: {random.randint(6, 666)} | |
| The old gods are watching and they're laughing | |
| 🛕🛕🛕 | |
| """ | |
| def normie_seethe(prompt): | |
| seethes = [ | |
| "This is why young people are doomed", | |
| "I don't get it and that scares me", | |
| "Back in my day we had REAL content", | |
| "This is just a phase, they'll grow out of it", | |
| "Someone please explain this to me slowly", | |
| "Is this what they mean by brain rot?", | |
| "I'm showing this to my therapist" | |
| ] | |
| return f""" | |
| 📊 NORMIE REACTION SIMULATOR 📊 | |
| Predicted comments from people over 30: | |
| "{random.choice(seethes)}" | |
| "{random.choice(seethes)}" | |
| "{random.choice(seethes)}" | |
| Engagement from normies: {random.randint(0, 10)}% | |
| Pure chaos engagement: {random.randint(90, 100)}% | |
| They seethe. We thrive. 🃏 | |
| """ | |
| # Build the cursed interface | |
| with gr.Blocks( | |
| theme=gr.themes.Base( | |
| primary_hue="purple", | |
| secondary_hue="red", | |
| neutral_hue="gray", | |
| ), | |
| css=""" | |
| .gradio-container { | |
| background: linear-gradient(135deg, #1a0a2e 0%, #16213e 50%, #0f0f23 100%); | |
| } | |
| h1 { | |
| font-family: 'Comic Sans MS', cursive !important; | |
| text-align: center; | |
| color: #ff00ff !important; | |
| text-shadow: 3px 3px 0px #ff0000, -3px -3px 0px #00ffff; | |
| animation: glitch 0.5s infinite; | |
| } | |
| @keyframes glitch { | |
| 0% { transform: translate(0); } | |
| 20% { transform: translate(-2px, 2px); } | |
| 40% { transform: translate(-2px, -2px); } | |
| 60% { transform: translate(2px, 2px); } | |
| 80% { transform: translate(2px, -2px); } | |
| 100% { transform: translate(0); } | |
| } | |
| .banner { | |
| background: linear-gradient(90deg, #ff0000, #ff00ff, #00ffff, #ff0000); | |
| background-size: 400% 400%; | |
| animation: rainbow 2s ease infinite; | |
| padding: 20px; | |
| border-radius: 10px; | |
| margin-bottom: 20px; | |
| } | |
| @keyframes rainbow { | |
| 0% { background-position: 0% 50%; } | |
| 50% { background-position: 100% 50%; } | |
| 100% { background-position: 0% 50%; } | |
| } | |
| .live-indicator { | |
| display: inline-block; | |
| width: 10px; | |
| height: 10px; | |
| background: #00ff00; | |
| border-radius: 50%; | |
| animation: pulse 1s infinite; | |
| margin-right: 5px; | |
| } | |
| @keyframes pulse { | |
| 0%, 100% { opacity: 1; } | |
| 50% { opacity: 0.3; } | |
| } | |
| """ | |
| ) as demo: | |
| gr.HTML(""" | |
| <div class="banner"> | |
| <h1 style="margin:0; font-size: 2.5em;">🃏 bRaiNRoTRePoRt666X 🃏</h1> | |
| <h2 style="margin:10px 0 0 0; color: #fff;">WHERE LOGIC GOES TO DIE AND MEMES ACHIEVE GODHOOD</h2> | |
| <p style="margin:10px 0 0 0; color: #fff;"><span class="live-indicator"></span>LIVE TRENDING FEED ACTIVE</p> | |
| </div> | |
| """) | |
| gr.Markdown(""" | |
| ### 🎭 Drop your brainrot sacrifice here... | |
| *Every refresh is another layer of beautiful decay. Why so serious?* | |
| """) | |
| with gr.Row(): | |
| text_input = gr.Textbox( | |
| label="Your Cursed Prompt", | |
| placeholder="e.g., make me a thumbnail that ends civilizations", | |
| lines=3, | |
| scale=2 | |
| ) | |
| with gr.Row(): | |
| btn_report = gr.Button("🔥 GENERATE FULL REPORT (Joker Mode)", variant="primary", scale=1) | |
| btn_ban = gr.Button("🚨 MAKE IT BANNABLE IN 3...2...1...", variant="stop", scale=1) | |
| with gr.Row(): | |
| btn_aztec = gr.Button("🛕 AZTEC 666 REMIX (summon Guest 666)", scale=1) | |
| btn_normie = gr.Button("😐 NORMIE SEETHE EDITION", scale=1) | |
| gr.Markdown(""" | |
| --- | |
| ### 📡 LIVE TRENDING BRAINROT FEED | |
| *Fetches trending topics and remixes them into pure chaos* | |
| """) | |
| with gr.Row(): | |
| btn_trending = gr.Button("🔥 FETCH LIVE TRENDS + REMIX", variant="secondary") | |
| trending_output = gr.Textbox( | |
| label="Live Trending Brainrot", | |
| lines=12, | |
| max_lines=20 | |
| ) | |
| output = gr.Textbox( | |
| label="Output from the Void", | |
| lines=15, | |
| max_lines=30 | |
| ) | |
| # Wire up the chaos | |
| btn_report.click(fn=generate_brainrot_report, inputs=text_input, outputs=output) | |
| btn_ban.click(fn=make_bannable, inputs=text_input, outputs=output) | |
| btn_aztec.click(fn=aztec_666_remix, inputs=text_input, outputs=output) | |
| btn_normie.click(fn=normie_seethe, inputs=text_input, outputs=output) | |
| btn_trending.click(fn=generate_trending_brainrot, inputs=None, outputs=trending_output) | |
| gr.HTML(""" | |
| <div style="text-align: center; margin-top: 40px; padding: 20px; border-top: 2px solid #ff00ff;"> | |
| <p style="color: #ff00ff; font-family: 'Comic Sans MS', cursive;"> | |
| 💜 Created with CLI chaos by @bRaiNRoTRePoRt666X 💜<br> | |
| <small>Let the algorithm seethe. Share it. Burn it. Repeat.</small> | |
| </p> | |
| </div> | |
| """) | |
| demo.launch() | |