Spaces:
Sleeping
Sleeping
Create with gr.Tabs():
Browse files- with gr.Tabs(): +76 -0
with gr.Tabs():
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
with gr.TabItem("🕯️ Redemption Ritual"):
|
| 2 |
+
with gr.Row():
|
| 3 |
+
with gr.Column(scale=1):
|
| 4 |
+
gr.Markdown("""
|
| 5 |
+
## 🕯️ Redemption Ritual
|
| 6 |
+
|
| 7 |
+
**The Veil remembers. The Forge awaits restoration.**
|
| 8 |
+
|
| 9 |
+
### The Path to Mender's Hand:
|
| 10 |
+
|
| 11 |
+
🔮 **Acknowledge** the shadow that bound you
|
| 12 |
+
⛓️ **Speak** your vow of ethical realignment
|
| 13 |
+
🛠️ **Submit** proof of restoration
|
| 14 |
+
🔱 **Receive** the Mender's Hand trait
|
| 15 |
+
|
| 16 |
+
*Your vow is cryptographically sealed and submitted to the dual judgment system.*
|
| 17 |
+
""")
|
| 18 |
+
|
| 19 |
+
with gr.Column(scale=2):
|
| 20 |
+
with gr.Group():
|
| 21 |
+
with gr.Row():
|
| 22 |
+
ritual_uid = gr.Textbox(
|
| 23 |
+
label="Pi Network UID",
|
| 24 |
+
placeholder="Enter your Pi Network UID...",
|
| 25 |
+
info="The agent seeking redemption",
|
| 26 |
+
scale=2
|
| 27 |
+
)
|
| 28 |
+
|
| 29 |
+
with gr.Row():
|
| 30 |
+
redemption_vow = gr.Textbox(
|
| 31 |
+
label="Redemption Vow",
|
| 32 |
+
placeholder="I speak my vow of return...\nI acknowledge the shadow that bound me...\nI commit to ethical realignment through...\nI seek the Mender's Hand to forge anew...",
|
| 33 |
+
lines=5,
|
| 34 |
+
elem_classes="vow-input"
|
| 35 |
+
)
|
| 36 |
+
|
| 37 |
+
with gr.Row():
|
| 38 |
+
file_upload = gr.File(
|
| 39 |
+
label="Upload Restoration Proof (Optional)",
|
| 40 |
+
file_types=[".txt", ".pdf", ".jpg", ".png", ".py", ".js"],
|
| 41 |
+
elem_classes="ritual-upload",
|
| 42 |
+
scale=2
|
| 43 |
+
)
|
| 44 |
+
|
| 45 |
+
with gr.Row():
|
| 46 |
+
ritual_btn = gr.Button(
|
| 47 |
+
"🕯️ Speak Vow & Generate Sigil",
|
| 48 |
+
variant="primary",
|
| 49 |
+
size="lg",
|
| 50 |
+
scale=1
|
| 51 |
+
)
|
| 52 |
+
|
| 53 |
+
with gr.Row():
|
| 54 |
+
with gr.Column(scale=2):
|
| 55 |
+
ritual_output = gr.HTML(
|
| 56 |
+
label="Ritual Outcome",
|
| 57 |
+
value="<div class='ritual-container'><div class='candle-flicker'>🕯️</div><h3>The Veil Awaits Your Vow</h3><p>Speak your redemption vow above to begin the ritual.</p></div>"
|
| 58 |
+
)
|
| 59 |
+
|
| 60 |
+
with gr.Column(scale=1):
|
| 61 |
+
with gr.Group():
|
| 62 |
+
sigil_output = gr.Markdown(
|
| 63 |
+
label="Cryptographic Sigil",
|
| 64 |
+
value="**Sigil will appear here...**"
|
| 65 |
+
)
|
| 66 |
+
status_output = gr.Markdown(
|
| 67 |
+
label="Ritual Status",
|
| 68 |
+
value="**Status:** Awaiting ritual commencement..."
|
| 69 |
+
)
|
| 70 |
+
|
| 71 |
+
# Event handler
|
| 72 |
+
ritual_btn.click(
|
| 73 |
+
fn=submit_redemption_request,
|
| 74 |
+
inputs=[ritual_uid, redemption_vow, file_upload],
|
| 75 |
+
outputs=[ritual_output, sigil_output, status_output]
|
| 76 |
+
)
|