Spaces:
Sleeping
Sleeping
Update app.py
Browse filesgit add app.py
git commit -m "Pi Trinity Hub V1.0.4 โ Embed=true + public triad"
git push
app.py
CHANGED
|
@@ -1,11 +1,11 @@
|
|
| 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 |
-
# Neon CSS as HTML Injection (Eternal
|
| 9 |
NEON_STYLE_HTML = """
|
| 10 |
<style>
|
| 11 |
body {
|
|
@@ -36,10 +36,10 @@ body {
|
|
| 36 |
</style>
|
| 37 |
"""
|
| 38 |
|
| 39 |
-
#
|
| 40 |
LIMITLESS_IFRAME = """
|
| 41 |
<iframe
|
| 42 |
-
src="https://onenoly11-limitlessforge.hf.space"
|
| 43 |
frameborder="0"
|
| 44 |
width="100%"
|
| 45 |
height="800"
|
|
@@ -50,7 +50,7 @@ LIMITLESS_IFRAME = """
|
|
| 50 |
|
| 51 |
SAMURAI_IFRAME = """
|
| 52 |
<iframe
|
| 53 |
-
src="https://onenoly11-pi-cyber-samurai-dojo.hf.space"
|
| 54 |
frameborder="0"
|
| 55 |
width="100%"
|
| 56 |
height="800"
|
|
@@ -61,7 +61,7 @@ SAMURAI_IFRAME = """
|
|
| 61 |
|
| 62 |
QUANTUM_IFRAME = """
|
| 63 |
<iframe
|
| 64 |
-
src="https://onenoly11-quantum-pi-hepta.hf.space"
|
| 65 |
frameborder="0"
|
| 66 |
width="100%"
|
| 67 |
height="800"
|
|
@@ -70,8 +70,8 @@ QUANTUM_IFRAME = """
|
|
| 70 |
></iframe>
|
| 71 |
"""
|
| 72 |
|
| 73 |
-
with gr.Blocks(title="Pi Trinity Hub") as demo:
|
| 74 |
-
#
|
| 75 |
gr.HTML(NEON_STYLE_HTML)
|
| 76 |
|
| 77 |
# Crest Banner
|
|
@@ -94,7 +94,7 @@ with gr.Blocks(title="Pi Trinity Hub") as demo: # โ FIXED: Pure Blocks, no CS
|
|
| 94 |
with gr.Tab("๐ฎ Quantum Pi Forge โ Hepta Mint"):
|
| 95 |
gr.HTML(QUANTUM_IFRAME)
|
| 96 |
|
| 97 |
-
#
|
| 98 |
gr.HTML("""
|
| 99 |
<div class='footer'>
|
| 100 |
<p>Forged in neon. Driven by Pi. The Canticle is complete.</p>
|
|
@@ -105,5 +105,5 @@ if __name__ == "__main__":
|
|
| 105 |
demo.launch(
|
| 106 |
server_name="0.0.0.0",
|
| 107 |
server_port=7860,
|
| 108 |
-
share=True
|
| 109 |
)
|
|
|
|
| 1 |
+
# app.py โ Pi Trinity Hub V1.0.4: One Gate, Three Forges โ Public Embeds Eternal
|
| 2 |
import gradio as gr
|
| 3 |
from pathlib import Path
|
| 4 |
|
| 5 |
ASSETS = Path("assets")
|
| 6 |
CREST = ASSETS / "trinity_crest.svg" # Optional
|
| 7 |
|
| 8 |
+
# Neon CSS as HTML Injection (Eternal)
|
| 9 |
NEON_STYLE_HTML = """
|
| 10 |
<style>
|
| 11 |
body {
|
|
|
|
| 36 |
</style>
|
| 37 |
"""
|
| 38 |
|
| 39 |
+
# Embed Iframes with ?embed=true (Slim, Footer-Free โ HF Rite)
|
| 40 |
LIMITLESS_IFRAME = """
|
| 41 |
<iframe
|
| 42 |
+
src="https://onenoly11-limitlessforge.hf.space?embed=true"
|
| 43 |
frameborder="0"
|
| 44 |
width="100%"
|
| 45 |
height="800"
|
|
|
|
| 50 |
|
| 51 |
SAMURAI_IFRAME = """
|
| 52 |
<iframe
|
| 53 |
+
src="https://onenoly11-pi-cyber-samurai-dojo.hf.space?embed=true"
|
| 54 |
frameborder="0"
|
| 55 |
width="100%"
|
| 56 |
height="800"
|
|
|
|
| 61 |
|
| 62 |
QUANTUM_IFRAME = """
|
| 63 |
<iframe
|
| 64 |
+
src="https://onenoly11-quantum-pi-hepta.hf.space?embed=true"
|
| 65 |
frameborder="0"
|
| 66 |
width="100%"
|
| 67 |
height="800"
|
|
|
|
| 70 |
></iframe>
|
| 71 |
"""
|
| 72 |
|
| 73 |
+
with gr.Blocks(title="Pi Trinity Hub") as demo:
|
| 74 |
+
# Neon Veil
|
| 75 |
gr.HTML(NEON_STYLE_HTML)
|
| 76 |
|
| 77 |
# Crest Banner
|
|
|
|
| 94 |
with gr.Tab("๐ฎ Quantum Pi Forge โ Hepta Mint"):
|
| 95 |
gr.HTML(QUANTUM_IFRAME)
|
| 96 |
|
| 97 |
+
# Footer
|
| 98 |
gr.HTML("""
|
| 99 |
<div class='footer'>
|
| 100 |
<p>Forged in neon. Driven by Pi. The Canticle is complete.</p>
|
|
|
|
| 105 |
demo.launch(
|
| 106 |
server_name="0.0.0.0",
|
| 107 |
server_port=7860,
|
| 108 |
+
share=True
|
| 109 |
)
|