Spaces:
Build error
Build error
| import streamlit as st | |
| def show_tutorial(): | |
| st.title("Tutorial") | |
| if st.session_state.role == "Consumer": | |
| show_consumer_tutorial() | |
| else: | |
| show_therapist_tutorial() | |
| def show_consumer_tutorial(): | |
| st.header("Welcome to MI Assistant - Consumer Guide") | |
| st.subheader("Available Features") | |
| st.markdown(""" | |
| 1. **Live Session** | |
| - Record real-time conversations | |
| - Get immediate feedback and analysis | |
| - Track your progress over time | |
| 2. **Moti Chat** | |
| - Chat with our AI therapist | |
| - Practice motivational conversations | |
| - Receive supportive guidance | |
| 3. **Session Analysis** | |
| - Upload previous session recordings | |
| - Get comprehensive analysis | |
| - Track your progress | |
| ### How to Use | |
| 1. **Starting a Live Session:** | |
| - Click on "Live Session" in the sidebar | |
| - Press "Start Recording" to begin | |
| - Speak naturally about your concerns | |
| - Get real-time feedback and guidance | |
| 2. **Using Moti Chat:** | |
| - Select "Moti Chat" from the sidebar | |
| - Type your messages in the chat box | |
| - Engage in a supportive conversation | |
| - Explore your motivation for change | |
| 3. **Analyzing Previous Sessions:** | |
| - Choose "Session Analysis" | |
| - Upload your session recording or transcript | |
| - Review detailed feedback and insights | |
| - Track your progress over time | |
| """) | |
| def show_therapist_tutorial(): | |
| st.header("Welcome to MI Assistant - Therapist Guide") | |
| st.subheader("Professional Features") | |
| st.markdown(""" | |
| 1. **Live Session Analysis** | |
| - Real-time MI adherence monitoring | |
| - Immediate feedback on techniques | |
| - Session recording and transcription | |
| 2. **Session Review** | |
| - Comprehensive MI framework analysis | |
| - MITI 4.2.1 scoring | |
| - Detailed feedback and recommendations | |
| 3. **Progress Tracking** | |
| - Long-term client progress monitoring | |
| - Statistical analysis of improvement | |
| - Evidence-based outcome measures | |
| ### Professional Guidelines | |
| 1. **Using Live Analysis:** | |
| - Monitor MI adherence in real-time | |
| - Receive technique suggestions | |
| - Track client change talk | |
| - Identify key moments for intervention | |
| 2. **Session Review Process:** | |
| - Upload session recordings | |
| - Get detailed MITI 4.2.1 scores | |
| - Review comprehensive analysis | |
| - Identify areas for improvement | |
| 3. **Progress Monitoring:** | |
| - Track client outcomes | |
| - Monitor change talk patterns | |
| - Assess intervention effectiveness | |
| - Generate progress reports | |
| """) |