Spaces:
Sleeping
Sleeping
Update navigation.py
Browse files- navigation.py +16 -8
navigation.py
CHANGED
@@ -12,13 +12,21 @@ project_root = current_file_path.parents[0]
|
|
12 |
assets_dir = project_root / "asset"
|
13 |
|
14 |
styles_dir = project_root / "styles"
|
15 |
-
support_arabic_text(all=True)
|
16 |
|
17 |
# خواندن فایل CSS
|
18 |
css_file_path = styles_dir / "main.css"
|
19 |
-
|
20 |
-
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
state = st.session_state
|
23 |
def get_current_page_name():
|
24 |
ctx = get_script_run_ctx()
|
@@ -31,12 +39,12 @@ def get_current_page_name():
|
|
31 |
|
32 |
|
33 |
def make_sidebar():
|
34 |
-
support_arabic_text(all=True)
|
35 |
-
with open(css_file_path, "r", encoding="utf-8") as file:
|
36 |
-
|
37 |
|
38 |
# اعمال CSS
|
39 |
-
st.markdown(f"<style>{css_code}</style>", unsafe_allow_html=True)
|
40 |
with st.sidebar:
|
41 |
|
42 |
st.title("💊 AI-Medical Questionnaire")
|
|
|
12 |
assets_dir = project_root / "asset"
|
13 |
|
14 |
styles_dir = project_root / "styles"
|
|
|
15 |
|
16 |
# خواندن فایل CSS
|
17 |
css_file_path = styles_dir / "main.css"
|
18 |
+
with open(css_file_path, "r", encoding="utf-8") as file:
|
19 |
+
css_code = file.read()
|
20 |
+
|
21 |
+
# اعمال CSS
|
22 |
+
st.markdown(f"""
|
23 |
+
<head>
|
24 |
+
<style>
|
25 |
+
{css_code}
|
26 |
+
</style>
|
27 |
+
</head>
|
28 |
+
""", unsafe_allow_html=True)
|
29 |
+
support_arabic_text(all=True)
|
30 |
state = st.session_state
|
31 |
def get_current_page_name():
|
32 |
ctx = get_script_run_ctx()
|
|
|
39 |
|
40 |
|
41 |
def make_sidebar():
|
42 |
+
# support_arabic_text(all=True)
|
43 |
+
# with open(css_file_path, "r", encoding="utf-8") as file:
|
44 |
+
# css_code = file.read()
|
45 |
|
46 |
# اعمال CSS
|
47 |
+
# st.markdown(f"<style>{css_code}</style>", unsafe_allow_html=True)
|
48 |
with st.sidebar:
|
49 |
|
50 |
st.title("💊 AI-Medical Questionnaire")
|