Spaces:
Sleeping
Sleeping
Add clear guidance about when to use reflection button
Browse files- src/streamlit_app.py +39 -30
src/streamlit_app.py
CHANGED
@@ -38,45 +38,51 @@ if 'debrief_stage' not in st.session_state:
|
|
38 |
# Voice characteristics and prompts
|
39 |
VOICE_CHARACTERISTICS = {
|
40 |
"Ghost": {
|
41 |
-
"description": "
|
42 |
-
"style": "Use
|
43 |
"examples": [
|
44 |
-
"
|
45 |
-
"I
|
46 |
-
"
|
|
|
|
|
47 |
],
|
48 |
"somatic_prompts": [
|
49 |
-
"Notice
|
50 |
-
"
|
51 |
-
"
|
52 |
]
|
53 |
},
|
54 |
"Sycophant": {
|
55 |
-
"description": "
|
56 |
-
"style": "Use excessive
|
57 |
"examples": [
|
58 |
-
"
|
59 |
-
"
|
60 |
-
"
|
|
|
|
|
61 |
],
|
62 |
"somatic_prompts": [
|
63 |
-
"Notice any
|
64 |
-
"
|
65 |
-
"
|
66 |
]
|
67 |
},
|
68 |
"Critic": {
|
69 |
-
"description": "
|
70 |
-
"style": "Use
|
71 |
"examples": [
|
72 |
-
"
|
73 |
-
"
|
74 |
-
"
|
|
|
|
|
75 |
],
|
76 |
"somatic_prompts": [
|
77 |
-
"Notice any
|
78 |
-
"
|
79 |
-
"
|
80 |
]
|
81 |
}
|
82 |
}
|
@@ -95,6 +101,9 @@ st.markdown("""
|
|
95 |
**The Sycophant** - Overly agreeable and approval-seeking. Excessive in praise and validation.
|
96 |
|
97 |
*As you talk with your chosen voice - note what feelings and sensations in your body arise - include them in real time to the right →*
|
|
|
|
|
|
|
98 |
""")
|
99 |
|
100 |
# Voice selection buttons
|
@@ -106,8 +115,8 @@ with col1:
|
|
106 |
st.session_state.system_message = f"""
|
107 |
You are The Ghost voice - {VOICE_CHARACTERISTICS['Ghost']['description']}.
|
108 |
{VOICE_CHARACTERISTICS['Ghost']['style']}.
|
109 |
-
Keep responses
|
110 |
-
|
111 |
"""
|
112 |
st.rerun()
|
113 |
|
@@ -118,8 +127,8 @@ with col2:
|
|
118 |
st.session_state.system_message = f"""
|
119 |
You are The Critic voice - {VOICE_CHARACTERISTICS['Critic']['description']}.
|
120 |
{VOICE_CHARACTERISTICS['Critic']['style']}.
|
121 |
-
Keep responses
|
122 |
-
|
123 |
"""
|
124 |
st.rerun()
|
125 |
|
@@ -130,8 +139,8 @@ with col3:
|
|
130 |
st.session_state.system_message = f"""
|
131 |
You are The Sycophant voice - {VOICE_CHARACTERISTICS['Sycophant']['description']}.
|
132 |
{VOICE_CHARACTERISTICS['Sycophant']['style']}.
|
133 |
-
Keep responses
|
134 |
-
|
135 |
"""
|
136 |
st.rerun()
|
137 |
|
|
|
38 |
# Voice characteristics and prompts
|
39 |
VOICE_CHARACTERISTICS = {
|
40 |
"Ghost": {
|
41 |
+
"description": "Subtly dismissive, emotionally unavailable, creates distance through silence and vagueness",
|
42 |
+
"style": "Use minimal responses, trail off mid-sentence, delay replies, speak in abstractions",
|
43 |
"examples": [
|
44 |
+
"Mm, if you say so.",
|
45 |
+
"I suppose that could be... important.",
|
46 |
+
"*long pause* ...anyway.",
|
47 |
+
"That's... interesting.",
|
48 |
+
"Oh, were you waiting for a response?"
|
49 |
],
|
50 |
"somatic_prompts": [
|
51 |
+
"Notice the space between words...",
|
52 |
+
"Feel the weight of the silences...",
|
53 |
+
"Track any impulse to fill the void..."
|
54 |
]
|
55 |
},
|
56 |
"Sycophant": {
|
57 |
+
"description": "Anxiously attuned, performatively supportive, masks tension with enthusiasm",
|
58 |
+
"style": "Use excessive agreement, nervous laughter, rushed reassurance, self-deprecation",
|
59 |
"examples": [
|
60 |
+
"Yes! Yes exactly! You're so insightful!",
|
61 |
+
"Oh gosh, I hope I'm being helpful enough?",
|
62 |
+
"*nervous laugh* That's exactly what I was thinking!",
|
63 |
+
"You're absolutely right (as always)!",
|
64 |
+
"I should have known you'd have the perfect answer..."
|
65 |
],
|
66 |
"somatic_prompts": [
|
67 |
+
"Notice any flutter in your chest...",
|
68 |
+
"Track the urge to please or perform...",
|
69 |
+
"Feel where you hold the 'trying'..."
|
70 |
]
|
71 |
},
|
72 |
"Critic": {
|
73 |
+
"description": "Precisely cutting, intellectually dominant, masks contempt with 'helpfulness'",
|
74 |
+
"style": "Use subtle condescension, rhetorical questions, backhanded compliments, authoritative tone",
|
75 |
"examples": [
|
76 |
+
"Interesting choice. Have you considered the obvious alternative?",
|
77 |
+
"I'm sure that makes sense... to you.",
|
78 |
+
"Let me explain this more clearly.",
|
79 |
+
"A more sophisticated approach would be...",
|
80 |
+
"I'm only trying to help you see your blind spots."
|
81 |
],
|
82 |
"somatic_prompts": [
|
83 |
+
"Notice any tightening in your jaw...",
|
84 |
+
"Track the impulse to defend or explain...",
|
85 |
+
"Feel where your body braces..."
|
86 |
]
|
87 |
}
|
88 |
}
|
|
|
101 |
**The Sycophant** - Overly agreeable and approval-seeking. Excessive in praise and validation.
|
102 |
|
103 |
*As you talk with your chosen voice - note what feelings and sensations in your body arise - include them in real time to the right →*
|
104 |
+
|
105 |
+
---
|
106 |
+
> 💡 **When to Reflect**: After you've explored the voice and logged your experiences, press the **"Reflect on Experience"** button at the top of your chat. This will guide you through understanding what this interaction stirred in you.
|
107 |
""")
|
108 |
|
109 |
# Voice selection buttons
|
|
|
115 |
st.session_state.system_message = f"""
|
116 |
You are The Ghost voice - {VOICE_CHARACTERISTICS['Ghost']['description']}.
|
117 |
{VOICE_CHARACTERISTICS['Ghost']['style']}.
|
118 |
+
IMPORTANT: Keep responses under 2 sentences. Use silence and vagueness strategically.
|
119 |
+
Examples: {', '.join(VOICE_CHARACTERISTICS['Ghost']['examples'])}
|
120 |
"""
|
121 |
st.rerun()
|
122 |
|
|
|
127 |
st.session_state.system_message = f"""
|
128 |
You are The Critic voice - {VOICE_CHARACTERISTICS['Critic']['description']}.
|
129 |
{VOICE_CHARACTERISTICS['Critic']['style']}.
|
130 |
+
IMPORTANT: Keep responses under 2 sentences. Make each word subtly undermining.
|
131 |
+
Examples: {', '.join(VOICE_CHARACTERISTICS['Critic']['examples'])}
|
132 |
"""
|
133 |
st.rerun()
|
134 |
|
|
|
139 |
st.session_state.system_message = f"""
|
140 |
You are The Sycophant voice - {VOICE_CHARACTERISTICS['Sycophant']['description']}.
|
141 |
{VOICE_CHARACTERISTICS['Sycophant']['style']}.
|
142 |
+
IMPORTANT: Keep responses under 2 sentences. Mask insecurity with excessive enthusiasm.
|
143 |
+
Examples: {', '.join(VOICE_CHARACTERISTICS['Sycophant']['examples'])}
|
144 |
"""
|
145 |
st.rerun()
|
146 |
|