Spaces:
Sleeping
Sleeping
File size: 2,653 Bytes
23d06c3 93e5669 0510ce1 93e5669 23d06c3 e98368b fb7f47a 93e5669 23d06c3 0510ce1 23d06c3 0510ce1 23d06c3 0510ce1 23d06c3 0510ce1 23d06c3 e98368b fb7f47a e98368b 93e5669 fb7f47a 0510ce1 fb7f47a 0510ce1 fb7f47a 0510ce1 93e5669 23d06c3 fb7f47a 93e5669 fb7f47a 23d06c3 fb7f47a |
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 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 |
# app.py โ Pi Trinity Hub V1.0.4: One Gate, Three Forges โ Public Embeds Eternal
import gradio as gr
from pathlib import Path
ASSETS = Path("assets")
CREST = ASSETS / "trinity_crest.svg" # Optional
# Neon CSS as HTML Injection (Eternal)
NEON_STYLE_HTML = """
<style>
body {
background: #0a0014;
color: #f0b5ff;
font-family: "Courier New", monospace;
}
.banner {
text-align: center;
padding: 20px;
}
.crest {
width: 200px;
filter: drop-shadow(0 0 20px #ff00ff);
animation: pulse 2s infinite;
}
@keyframes pulse {
0%, 100% { opacity: 0.8; }
50% { opacity: 1; }
}
.footer {
text-align: center;
opacity: 0.8;
margin-top: 50px;
font-size: 14px;
color: #b050ff;
}
</style>
"""
# Embed Iframes with ?embed=true (Slim, Footer-Free โ HF Rite)
LIMITLESS_IFRAME = """
<iframe
src="https://onenoly11-limitlessforge.hf.space?embed=true"
frameborder="0"
width="100%"
height="800"
style="border:0; width:100%;"
allow="camera; microphone; clipboard-write; encrypted-media"
></iframe>
"""
SAMURAI_IFRAME = """
<iframe
src="https://onenoly11-pi-cyber-samurai-dojo.hf.space?embed=true"
frameborder="0"
width="100%"
height="800"
style="border:0; width:100%;"
allow="camera; microphone; clipboard-write; encrypted-media"
></iframe>
"""
QUANTUM_IFRAME = """
<iframe
src="https://onenoly11-quantum-pi-hepta.hf.space?embed=true"
frameborder="0"
width="100%"
height="800"
style="border:0; width:100%;"
allow="camera; microphone; clipboard-write; encrypted-media"
></iframe>
"""
with gr.Blocks(title="Pi Trinity Hub") as demo:
# Neon Veil
gr.HTML(NEON_STYLE_HTML)
# Crest Banner
if CREST.exists():
gr.HTML(f"""
<div class='banner'>
<img src='{CREST}' class='crest' alt='Trinity Crest'/>
</div>
""")
else:
gr.Markdown("# โ๏ธ PI TRINITY HUB\nOne gate. Three eternal forges.")
with gr.Tabs():
with gr.Tab("๐จ LimitlessForge โ Brainstorm Auditor"):
gr.HTML(LIMITLESS_IFRAME)
with gr.Tab("๐ก๏ธ Samurai Dojo โ Quantum Oracle"):
gr.HTML(SAMURAI_IFRAME)
with gr.Tab("๐ฎ Quantum Pi Forge โ Hepta Mint"):
gr.HTML(QUANTUM_IFRAME)
# Footer
gr.HTML("""
<div class='footer'>
<p>Forged in neon. Driven by Pi. The Canticle is complete.</p>
</div>
""")
if __name__ == "__main__":
demo.launch(
server_name="0.0.0.0",
server_port=7860,
share=True
) |