onenoly11 commited on
Commit
e98368b
ยท
verified ยท
1 Parent(s): fb7f47a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +44 -16
app.py CHANGED
@@ -1,26 +1,54 @@
1
- # app.py โ€” Pi Trinity Hub V1.0.1: One Gate, Three Eternal Forges
2
  import gradio as gr
3
  from pathlib import Path
4
 
5
  ASSETS = Path("assets")
6
- CREST = ASSETS / "trinity_crest.svg" # Optional: Upload a 3-blade crest
7
 
8
- # Inline Neon CSS (No file needed โ€“ Gradio 4.x compatible)
9
- NEON_CSS = """
10
- body { background: #0a0014; color: #f0b5ff; font-family: monospace; }
11
- .banner { text-align: center; padding: 20px; }
12
- .crest { width: 200px; filter: drop-shadow(0 0 20px #ff00ff); animation: pulse 2s infinite; }
13
- @keyframes pulse { 0%, 100% { opacity: 0.8; } 50% { opacity: 1; } }
14
- .footer { text-align: center; opacity: 0.8; margin-top: 50px; font-size: 14px; color: #b050ff; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  """
16
 
17
- with gr.Blocks(css=NEON_CSS, title="Pi Trinity Hub") as demo: # โ† FIXED: Inline css= string
 
 
 
18
  # Crest Banner
19
- gr.HTML(f"""
20
- <div class='banner'>
21
- <img src='{CREST}' class='crest' alt='Trinity Crest'/>
22
- </div>
23
- """) if CREST.exists() else gr.Markdown("# โš”๏ธ PI TRINITY HUB\nOne gate. Three eternal forges.")
 
 
 
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 if needed
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("""