File size: 1,102 Bytes
a854c1b
 
4500ed3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import streamlit as st
import sys
import os
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import plotly.express as px
import plotly.graph_objects as go

# إضافة مسار الوحدات
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

# استيراد التطبيق المتكامل
from pricing_system.integrated_app import IntegratedApp

def main():
    """
    الدالة الرئيسية لتشغيل التطبيق
    """
    # تعيين عنوان الصفحة وأيقونة التطبيق
    st.set_page_config(
        page_title="نظام تحليل المناقصات",
        page_icon="📊",
        layout="wide",
        initial_sidebar_state="expanded"
    )
    
    # تطبيق الأنماط الموحدة
    with open("pricing_system/static/css/unified_style.css") as f:
        st.markdown(f"<style>{f.read()}</style>", unsafe_allow_html=True)
    
    # إنشاء وتشغيل التطبيق المتكامل
    app = IntegratedApp()
    app.run()

if __name__ == "__main__":
    main()