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('
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.
Get instant feedback on your MI sessions with our advanced AI analysis tools.
Track your progress and gain detailed insights into your MI practice development.
Practice MI skills with our AI companion and receive personalized guidance.
Choose from our features above to begin your journey towards MI excellence.