import streamlit as st from pydub import AudioSegment import tempfile def main(): st.title("Mindfulness Steps") # Apply custom CSS styling st.markdown( """ """, unsafe_allow_html=True ) meditation_steps = [ "1)Find Your Quiet Spot: Find a cozy and quiet space where you won't be disturbed. It could be a corner in your room, a comfortable chair, or even a quiet park bench.", "2)Set a Time Limit: Start small. Decide on a reasonable time for your meditation session. Five minutes is perfect for beginners. You can always increase it as you get more comfortable.", "3)Get Comfortable: Sit comfortably on a cushion or chair. Make sure your back is straight, and your hands are resting on your lap or knees. Close your eyes gently or keep a soft gaze.", "4)Focus on Your Breath: Take a moment to notice your breath. Feel the sensation as you breathe in and out. It could be the air passing through your nostrils, the rise and fall of your chest, or the movement of your abdomen.", "5)Be Present: As you focus on your breath, your mind might wander. That's okay! When you notice it happening, gently guide your attention back to your breath. Be in the moment.", "6)No Judgments: Remember, there's no right or wrong here. If your mind wanders, don't be hard on yourself. Just acknowledge it and bring your focus back to your breath. It's a practice, not a perfect.", "7)Body Scan: If you want, scan your body from toes to head. Notice any sensations or tension, and let them go as you breathe.", "8)Loving-Kindness: Spread some love. In your mind, say phrases like May I/you be happy, may I/you be healthy, may I/you be safe, may I/you be at ease.", "9)Gradual End: As your session time ends, slowly bring your awareness back. Open your eyes, take a deep breath, and notice how you feel. Carry this sense of presence into the rest of your day.", ] # Display meditation steps with custom styling st.markdown('
' + '
'.join(meditation_steps) + '