""" Sidebar Component for DermaScan AI """ import streamlit as st def render_sidebar(state_cities): """ Render the sidebar with location selection and information Args: state_cities: Dictionary of states and their cities Returns: tuple: (selected_state, selected_city) """ with st.sidebar: st.markdown("### 📍 Location") selected_state = st.selectbox( "State", list(state_cities.keys()), index=list(state_cities.keys()).index("Delhi") ) cities = state_cities.get(selected_state, ["Other"]) selected_city = st.selectbox("City", cities, index=0) st.markdown("---") st.markdown("### 🔬 About DermaScan AI") st.markdown("""

Advanced AI-powered dermatology analysis system using deep learning to detect and classify skin conditions.

🧠 Technology

• EfficientNet-B3 Architecture
• 96% AUC-ROC Accuracy
• Real-time Analysis

🔬 Detects 13 Conditions

• 3 Cancer Types
• 4 Benign Conditions
• 6 Skin Diseases

📊 Training Data

• HAM10000 Dataset
• DermNet Collection
• 10,000+ Images

""", unsafe_allow_html=True) st.markdown("---") st.markdown("### 🚨 Emergency Contacts") st.markdown("""

🇮🇳 India Helplines

🚨 Emergency: 112

🚑 Ambulance: 108

🏥 Health: 104

🎗️ Cancer: 1800-11-6006

""", unsafe_allow_html=True) st.markdown("---") st.markdown("### ⚕️ Medical Disclaimer") st.markdown("""
This AI tool is for educational and screening purposes only. It is NOT a substitute for professional medical diagnosis. Always consult a qualified dermatologist for proper evaluation.
""", unsafe_allow_html=True) st.markdown("---") st.markdown( "

" "🏥 DermaScan AI v1.0
Medical Grade Analysis

", unsafe_allow_html=True, ) return selected_state, selected_city