import streamlit as st from streamlit_lottie import st_lottie import requests import json def load_lottie_url(url: str): """Load Lottie animation from URL""" try: r = requests.get(url) if r.status_code != 200: return None return r.json() except: return None def show_welcome(): # Page configuration st.set_page_config( page_title="MI Companion", page_icon="🤝", layout="wide" ) # Custom CSS for styling st.markdown(""" """, unsafe_allow_html=True) # Main content container container = st.container() with container: # Header Section st.markdown('

Welcome to MI Companion

', unsafe_allow_html=True) st.markdown( '

Your Intelligent Partner in Motivational Interviewing

', unsafe_allow_html=True ) # Lottie Animation lottie_url = "https://assets5.lottiefiles.com/packages/lf20_5tl1xxnz.json" # Counseling/therapy themed animation lottie_json = load_lottie_url(lottie_url) if lottie_json: st_lottie(lottie_json, height=300, key="welcome") # Introduction st.markdown("""

Embark on a transformative journey with MI Companion, your dedicated partner in mastering Motivational Interviewing. Whether you're a seasoned professional or just starting out, our AI-powered platform provides real-time support, detailed session analysis, and personalized feedback to enhance your MI practice.

""", unsafe_allow_html=True) # Features Section st.markdown("

Key Features

", unsafe_allow_html=True) col1, col2, col3 = st.columns(3) with col1: st.markdown("""
🎯

Real-time Analysis

Get instant feedback on your MI sessions with our advanced AI analysis tools.

""", unsafe_allow_html=True) with col2: st.markdown("""
📊

Comprehensive Insights

Track your progress and gain detailed insights into your MI practice development.

""", unsafe_allow_html=True) with col3: st.markdown("""
🤝

Interactive Support

Practice MI skills with our AI companion and receive personalized guidance.

""", unsafe_allow_html=True) # Call to Action st.markdown("""

Ready to Enhance Your MI Practice?

Choose from our features above to begin your journey towards MI excellence.

""", unsafe_allow_html=True) # Quick Start Guide with st.expander("📚 Quick Start Guide"): st.markdown(""" ### Getting Started with MI Companion 1. **Session Analysis**: Upload your session recordings or transcripts 2. **Practice Chat**: Engage with our AI companion to practice MI techniques 3. **Progress Tracking**: Monitor your development over time 4. **Resource Library**: Access MI learning materials and best practices Need help? Click the '?' icon in the top right corner for support. """) if __name__ == "__main__": show_welcome()