import streamlit as st from admin_dashboard import AdminDashboard from banking_assistant import BankingAssistant from banking_model import BankingModelTrainer from ml_banking_model import MLBankingEngine class BankingSystem: def __init__(self): self.ml_engine = MLBankingEngine() self.model_trainer = BankingModelTrainer() self.assistant = BankingAssistant() self.admin = AdminDashboard() self.setup_page_config() self.initialize_session_state() def setup_page_config(self): st.set_page_config( page_title="سیستم بانکداری هوشمند", page_icon="🏦", layout="wide", initial_sidebar_state="expanded" ) def initialize_session_state(self): if 'theme' not in st.session_state: st.session_state.theme = 'light' if 'user_role' not in st.session_state: st.session_state.user_role = 'user' if 'authenticated' not in st.session_state: st.session_state.authenticated = False def render_login(self): st.markdown("""
لطفا وارد شوید