Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ model = genai.GenerativeModel('gemini-pro')
|
|
| 14 |
|
| 15 |
# Page config
|
| 16 |
st.set_page_config(
|
| 17 |
-
page_title="
|
| 18 |
page_icon="🧊",
|
| 19 |
layout="wide",
|
| 20 |
initial_sidebar_state="expanded"
|
|
@@ -56,19 +56,88 @@ def sidebar():
|
|
| 56 |
if st.button("Session Analysis"):
|
| 57 |
st.session_state.current_mode = "session_analysis"
|
| 58 |
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
with col1:
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
with col2:
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
|
| 73 |
def main():
|
| 74 |
if st.session_state.role is None:
|
|
|
|
| 14 |
|
| 15 |
# Page config
|
| 16 |
st.set_page_config(
|
| 17 |
+
page_title="MotiMeter",
|
| 18 |
page_icon="🧊",
|
| 19 |
layout="wide",
|
| 20 |
initial_sidebar_state="expanded"
|
|
|
|
| 56 |
if st.button("Session Analysis"):
|
| 57 |
st.session_state.current_mode = "session_analysis"
|
| 58 |
|
| 59 |
+
|
| 60 |
+
def show_welcome():
|
| 61 |
+
# Center align all contents
|
| 62 |
+
st.markdown("""
|
| 63 |
+
<style>
|
| 64 |
+
.centered {
|
| 65 |
+
text-align: center;
|
| 66 |
+
max-width: 800px;
|
| 67 |
+
margin: 0 auto;
|
| 68 |
+
padding: 20px;
|
| 69 |
+
}
|
| 70 |
+
.big-header {
|
| 71 |
+
font-size: 3em;
|
| 72 |
+
color: #1E88E5;
|
| 73 |
+
margin-bottom: 20px;
|
| 74 |
+
}
|
| 75 |
+
.sub-header {
|
| 76 |
+
font-size: 1.5em;
|
| 77 |
+
color: #424242;
|
| 78 |
+
margin-bottom: 30px;
|
| 79 |
+
}
|
| 80 |
+
.feature-box {
|
| 81 |
+
background-color: #f5f5f5;
|
| 82 |
+
border-radius: 10px;
|
| 83 |
+
padding: 20px;
|
| 84 |
+
margin: 10px;
|
| 85 |
+
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
|
| 86 |
+
}
|
| 87 |
+
</style>
|
| 88 |
+
""", unsafe_allow_html=True)
|
| 89 |
+
|
| 90 |
+
st.markdown("""
|
| 91 |
+
<div class="centered">
|
| 92 |
+
<h1 class="big-header">Welcome to MotiMeter</h1>
|
| 93 |
+
<p class="sub-header">MotiMeter is your AI companion that makes motivational interviewing simple and clear. It listens to therapy conversations and shows both therapists and clients exactly where they are on their change journey - just like a GPS for personal growth.</p>
|
| 94 |
+
</div>
|
| 95 |
+
""", unsafe_allow_html=True)
|
| 96 |
+
|
| 97 |
+
# Create three columns for features
|
| 98 |
+
col1, col2, col3 = st.columns(3)
|
| 99 |
+
|
| 100 |
with col1:
|
| 101 |
+
st.markdown("""
|
| 102 |
+
<div class="feature-box">
|
| 103 |
+
<h3>🎯 Real-time Analysis</h3>
|
| 104 |
+
<p>Get instant feedback on your MI sessions using advanced AI technology</p>
|
| 105 |
+
</div>
|
| 106 |
+
""", unsafe_allow_html=True)
|
| 107 |
+
|
| 108 |
with col2:
|
| 109 |
+
st.markdown("""
|
| 110 |
+
<div class="feature-box">
|
| 111 |
+
<h3>📊 Track Progress</h3>
|
| 112 |
+
<p>Monitor your development and improve your MI skills over time</p>
|
| 113 |
+
</div>
|
| 114 |
+
""", unsafe_allow_html=True)
|
| 115 |
+
|
| 116 |
+
with col3:
|
| 117 |
+
st.markdown("""
|
| 118 |
+
<div class="feature-box">
|
| 119 |
+
<h3>🤝 Interactive Support</h3>
|
| 120 |
+
<p>Practice and enhance your MI techniques with AI guidance</p>
|
| 121 |
+
</div>
|
| 122 |
+
""", unsafe_allow_html=True)
|
| 123 |
+
|
| 124 |
+
# Add getting started section
|
| 125 |
+
st.markdown("""
|
| 126 |
+
<div class="centered">
|
| 127 |
+
<h2>Getting Started</h2>
|
| 128 |
+
<p>Upload your session recordings or practice with our AI assistant to improve your MI skills.</p>
|
| 129 |
+
</div>
|
| 130 |
+
""", unsafe_allow_html=True)
|
| 131 |
+
|
| 132 |
+
# Quick start guide
|
| 133 |
+
with st.expander("📚 Quick Start Guide"):
|
| 134 |
+
st.markdown("""
|
| 135 |
+
### How to Use MotiMeter
|
| 136 |
+
1. **Upload Sessions**: Share your recorded sessions for analysis
|
| 137 |
+
2. **Get Feedback**: Receive detailed insights about your MI practice
|
| 138 |
+
3. **Track Progress**: Monitor your improvement over time
|
| 139 |
+
4. **Practice**: Use our AI assistant to enhance your skills
|
| 140 |
+
""")
|
| 141 |
|
| 142 |
def main():
|
| 143 |
if st.session_state.role is None:
|