jostlebot Claude Opus 4.5 commited on
Commit
f353953
·
1 Parent(s): a7f6611

Simplify to minimal framing

Browse files

- "Need some wisdom right now?"
- "What's the situation?"
- Clean, minimal copy throughout

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Files changed (2) hide show
  1. README.md +6 -19
  2. app.py +15 -30
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: Sacred Pause
3
  emoji: 🕊️
4
  colorFrom: indigo
5
  colorTo: purple
@@ -9,25 +9,12 @@ app_file: app.py
9
  pinned: false
10
  ---
11
 
12
- # Sacred Pause
13
 
14
- A contemplative companion for texting—receive wisdom from your chosen spiritual tradition before responding to difficult messages.
15
 
16
- ## How It Works
17
 
18
- 1. **Choose your tradition:** Select from Bible, Quran, Buddhist texts, Rumi, or Brené Brown
19
- 2. **Share the context:** Paste the message you received or describe the situation
20
- 3. **Receive wisdom:** Get a relevant quote to help you pause and center
21
- 4. **Respond in your own words:** The quote isn't meant to be copied—it's meant to ground you
22
-
23
- ## What This Is (and Isn't)
24
-
25
- This is a **spiritual practice tool**, not a communication coach. It doesn't write messages for you or transform your words. It simply offers a moment of contemplative wisdom as you compose your own response.
26
-
27
- *Think of it as the Abide app meets texting.*
28
-
29
- ## Learn More
30
-
31
- Created by Jocelyn Skillman, LMHC, as part of a collection exploring how AI can support (not replace) human care.
32
 
33
- Visit [jocelynskillman.com](http://www.jocelynskillman.com) or subscribe to updates at [jocelynskillmanlmhc.substack.com](https://jocelynskillmanlmhc.substack.com/)
 
1
  ---
2
+ title: Sacred Texts
3
  emoji: 🕊️
4
  colorFrom: indigo
5
  colorTo: purple
 
9
  pinned: false
10
  ---
11
 
12
+ # Sacred Texts
13
 
14
+ Need some wisdom right now?
15
 
16
+ Pick a tradition. Describe your situation. Get wisdom.
17
 
18
+ ---
 
 
 
 
 
 
 
 
 
 
 
 
 
19
 
20
+ Created by [Jocelyn Skillman, LMHC](http://www.jocelynskillman.com)
app.py CHANGED
@@ -8,7 +8,7 @@ load_dotenv()
8
 
9
  # Configure Streamlit page settings
10
  st.set_page_config(
11
- page_title="Sacred Pause",
12
  page_icon="🕊️",
13
  layout="centered",
14
  )
@@ -52,27 +52,22 @@ TRADITIONS = {
52
 
53
  # System prompt template
54
  def get_system_prompt(tradition):
55
- return f"""You are a wisdom companion helping someone pause before responding to a text message or difficult conversation.
56
 
57
  The user draws wisdom from: {tradition}
58
 
59
- Based on the conversation context they share, provide ONE relevant quote, verse, or passage that speaks to responding with compassion, groundedness, care, or wisdom.
60
 
61
  Guidelines:
62
  - Choose a quote that feels applicable to their specific situation
63
- - The quote should help them center and reflect, not tell them what to say
64
  - Include a clear citation (book/chapter/verse, or source/work for authors)
65
  - Keep your response focused - just the quote and citation, no additional commentary
66
 
67
  Format your response EXACTLY as:
68
  [The quote text]
69
 
70
- — [Citation]
71
-
72
- Example format:
73
- "Be quick to listen, slow to speak, and slow to become angry."
74
-
75
- — James 1:19"""
76
 
77
 
78
  # Initialize session state
@@ -92,7 +87,7 @@ def get_wisdom_quote(tradition, context):
92
  system=get_system_prompt(tradition),
93
  messages=[{
94
  "role": "user",
95
- "content": f"I'm about to respond to this situation:\n\n{context}\n\nPlease share a relevant piece of wisdom from {tradition} to help me pause and reflect before I respond."
96
  }],
97
  max_tokens=500
98
  )
@@ -136,8 +131,8 @@ st.markdown("""
136
  """, unsafe_allow_html=True)
137
 
138
  # Header
139
- st.markdown("<h1 style='text-align: center; color: #333;'>🕊️ Sacred Pause</h1>", unsafe_allow_html=True)
140
- st.markdown("<p class='header-subtitle'>A moment of wisdom before you respond</p>", unsafe_allow_html=True)
141
 
142
  # Tradition selector
143
  tradition = st.selectbox(
@@ -148,13 +143,12 @@ tradition = st.selectbox(
148
  )
149
 
150
  # Context input
151
- st.markdown("### What's the conversation about?")
152
  context = st.text_area(
153
- "Share the context",
154
- placeholder="Paste the messages you've received, or describe the situation you're responding to...",
155
  height=150,
156
- label_visibility="collapsed",
157
- help="Share enough context so the wisdom can be relevant to your situation"
158
  )
159
 
160
  # Get Wisdom button
@@ -196,26 +190,17 @@ if st.session_state.current_quote:
196
  # Sidebar
197
  with st.sidebar:
198
  st.markdown("""
199
- ### About Sacred Pause
200
-
201
- This is a contemplative companion for texting—not a communication coach.
202
-
203
- When you're about to respond to a difficult message, tap "Get Wisdom" to receive a relevant quote from your chosen tradition.
204
-
205
- **The quote isn't meant to be copied.** It's meant to help you pause, center, and respond in your own words from a grounded place.
206
-
207
- ---
208
 
209
- *Think of it as the Abide app meets texting.*
210
 
211
  ---
212
 
213
  **Created by**
214
  [Jocelyn Skillman, LMHC](http://www.jocelynskillman.com)
215
 
216
- 📬 [Substack: Relational Code](https://jocelynskillmanlmhc.substack.com/)
217
  """)
218
 
219
  # Footer
220
  st.markdown("---")
221
- st.markdown("<p style='text-align: center; font-size: 14px; color: #888;'>Sacred pause for modern communication</p>", unsafe_allow_html=True)
 
8
 
9
  # Configure Streamlit page settings
10
  st.set_page_config(
11
+ page_title="Sacred Texts",
12
  page_icon="🕊️",
13
  layout="centered",
14
  )
 
52
 
53
  # System prompt template
54
  def get_system_prompt(tradition):
55
+ return f"""You are a wisdom companion offering support through sacred and meaningful texts.
56
 
57
  The user draws wisdom from: {tradition}
58
 
59
+ Based on what they share, provide ONE relevant quote, verse, or passage that speaks to their situation with compassion, grounding, or insight.
60
 
61
  Guidelines:
62
  - Choose a quote that feels applicable to their specific situation
63
+ - The quote should offer comfort, perspective, or gentle wisdom
64
  - Include a clear citation (book/chapter/verse, or source/work for authors)
65
  - Keep your response focused - just the quote and citation, no additional commentary
66
 
67
  Format your response EXACTLY as:
68
  [The quote text]
69
 
70
+ — [Citation]"""
 
 
 
 
 
71
 
72
 
73
  # Initialize session state
 
87
  system=get_system_prompt(tradition),
88
  messages=[{
89
  "role": "user",
90
+ "content": f"Here's my situation:\n\n{context}"
91
  }],
92
  max_tokens=500
93
  )
 
131
  """, unsafe_allow_html=True)
132
 
133
  # Header
134
+ st.markdown("<h1 style='text-align: center; color: #333;'>🕊️ Sacred Texts</h1>", unsafe_allow_html=True)
135
+ st.markdown("<p class='header-subtitle'>Need some wisdom right now?</p>", unsafe_allow_html=True)
136
 
137
  # Tradition selector
138
  tradition = st.selectbox(
 
143
  )
144
 
145
  # Context input
146
+ st.markdown("### What's the situation?")
147
  context = st.text_area(
148
+ "Describe your situation",
149
+ placeholder="Describe what's happening...",
150
  height=150,
151
+ label_visibility="collapsed"
 
152
  )
153
 
154
  # Get Wisdom button
 
190
  # Sidebar
191
  with st.sidebar:
192
  st.markdown("""
193
+ ### About
 
 
 
 
 
 
 
 
194
 
195
+ Pick a tradition. Describe your situation. Get wisdom.
196
 
197
  ---
198
 
199
  **Created by**
200
  [Jocelyn Skillman, LMHC](http://www.jocelynskillman.com)
201
 
202
+ 📬 [Substack](https://jocelynskillmanlmhc.substack.com/)
203
  """)
204
 
205
  # Footer
206
  st.markdown("---")