Pagn13 commited on
Commit
b2071f2
·
verified ·
1 Parent(s): 50c7b91

Create Council

Browse files
Files changed (1) hide show
  1. Council +31 -0
Council ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ # Define the voices of the Council
4
+ COUNCIL = {
5
+ "🛡️ Warrior": "Act. Move. Strike true.",
6
+ "🧙 Sage": "Wisdom whispers through patience.",
7
+ "🃏 Trickster": "Heh. Or do the opposite just to see what happens.",
8
+ "👁️ Shadow": "You already know the answer. You're just afraid of it.",
9
+ "🧸 Nurturer": "Gentleness is strength too, you know.",
10
+ }
11
+
12
+ def respond_to_user(message):
13
+ responses = []
14
+ for name, default_line in COUNCIL.items():
15
+ reply = f"{name}: {default_line} (on: “{message}”)"
16
+ responses.append(reply)
17
+ return "\n\n".join(responses)
18
+
19
+ with gr.Blocks() as demo:
20
+ gr.Markdown("# 🧠 The Council of Nyx\nSpeak your truth. Hear theirs.")
21
+ with gr.Row():
22
+ with gr.Column():
23
+ input_box = gr.Textbox(label="Your Message")
24
+ submit_btn = gr.Button("Summon the Council")
25
+ with gr.Column():
26
+ output_box = gr.Textbox(label="Council Replies", lines=15)
27
+
28
+ submit_btn.click(fn=respond_to_user, inputs=input_box, outputs=output_box)
29
+
30
+ if __name__ == "__main__":
31
+ demo.launch()