Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,26 +1,54 @@
|
|
| 1 |
-
# app.py โ Pi Trinity Hub V1.0.
|
| 2 |
import gradio as gr
|
| 3 |
from pathlib import Path
|
| 4 |
|
| 5 |
ASSETS = Path("assets")
|
| 6 |
-
CREST = ASSETS / "trinity_crest.svg" # Optional
|
| 7 |
|
| 8 |
-
#
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
"""
|
| 16 |
|
| 17 |
-
with gr.Blocks(
|
|
|
|
|
|
|
|
|
|
| 18 |
# Crest Banner
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
<
|
| 22 |
-
|
| 23 |
-
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
with gr.Tabs():
|
| 26 |
with gr.Tab("๐จ LimitlessForge โ Brainstorm Auditor"):
|
|
@@ -30,7 +58,7 @@ with gr.Blocks(css=NEON_CSS, title="Pi Trinity Hub") as demo: # โ FIXED: Inli
|
|
| 30 |
gr.Iframe(src="https://huggingface.co/spaces/onenoly11/pi-cyber-samurai-dojo/embed", height=800)
|
| 31 |
|
| 32 |
with gr.Tab("๐ฎ Quantum Pi Forge โ Hepta Mint"):
|
| 33 |
-
gr.Iframe(src="https://huggingface.co/spaces/onenoly11/quantum-pi-hepta/embed", height=800) # Adjust name
|
| 34 |
|
| 35 |
# Eternal Footer
|
| 36 |
gr.HTML("""
|
|
|
|
| 1 |
+
# app.py โ Pi Trinity Hub V1.0.2: One Gate, Three Forges โ Eternal
|
| 2 |
import gradio as gr
|
| 3 |
from pathlib import Path
|
| 4 |
|
| 5 |
ASSETS = Path("assets")
|
| 6 |
+
CREST = ASSETS / "trinity_crest.svg" # Optional crest
|
| 7 |
|
| 8 |
+
# Neon CSS as HTML Injection (Gradio 4.x Eternal)
|
| 9 |
+
NEON_STYLE_HTML = """
|
| 10 |
+
<style>
|
| 11 |
+
body {
|
| 12 |
+
background: #0a0014;
|
| 13 |
+
color: #f0b5ff;
|
| 14 |
+
font-family: "Courier New", monospace;
|
| 15 |
+
}
|
| 16 |
+
.banner {
|
| 17 |
+
text-align: center;
|
| 18 |
+
padding: 20px;
|
| 19 |
+
}
|
| 20 |
+
.crest {
|
| 21 |
+
width: 200px;
|
| 22 |
+
filter: drop-shadow(0 0 20px #ff00ff);
|
| 23 |
+
animation: pulse 2s infinite;
|
| 24 |
+
}
|
| 25 |
+
@keyframes pulse {
|
| 26 |
+
0%, 100% { opacity: 0.8; }
|
| 27 |
+
50% { opacity: 1; }
|
| 28 |
+
}
|
| 29 |
+
.footer {
|
| 30 |
+
text-align: center;
|
| 31 |
+
opacity: 0.8;
|
| 32 |
+
margin-top: 50px;
|
| 33 |
+
font-size: 14px;
|
| 34 |
+
color: #b050ff;
|
| 35 |
+
}
|
| 36 |
+
</style>
|
| 37 |
"""
|
| 38 |
|
| 39 |
+
with gr.Blocks(title="Pi Trinity Hub") as demo: # โ FIXED: No css param โ pure Blocks
|
| 40 |
+
# Inject Neon Veil
|
| 41 |
+
gr.HTML(NEON_STYLE_HTML)
|
| 42 |
+
|
| 43 |
# Crest Banner
|
| 44 |
+
if CREST.exists():
|
| 45 |
+
gr.HTML(f"""
|
| 46 |
+
<div class='banner'>
|
| 47 |
+
<img src='{CREST}' class='crest' alt='Trinity Crest'/>
|
| 48 |
+
</div>
|
| 49 |
+
""")
|
| 50 |
+
else:
|
| 51 |
+
gr.Markdown("# โ๏ธ PI TRINITY HUB\nOne gate. Three eternal forges.")
|
| 52 |
|
| 53 |
with gr.Tabs():
|
| 54 |
with gr.Tab("๐จ LimitlessForge โ Brainstorm Auditor"):
|
|
|
|
| 58 |
gr.Iframe(src="https://huggingface.co/spaces/onenoly11/pi-cyber-samurai-dojo/embed", height=800)
|
| 59 |
|
| 60 |
with gr.Tab("๐ฎ Quantum Pi Forge โ Hepta Mint"):
|
| 61 |
+
gr.Iframe(src="https://huggingface.co/spaces/onenoly11/quantum-pi-hepta/embed", height=800) # Adjust if Space name differs
|
| 62 |
|
| 63 |
# Eternal Footer
|
| 64 |
gr.HTML("""
|