Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,6 @@ import streamlit as st
|
|
3 |
# --- SHARED ON ALL PAGES ---
|
4 |
#st.logo(image=":material/medical_information:")
|
5 |
st.logo("images/medical_information_24dp_1F1F1F_FILL0_wght400_GRAD0_opsz24.png")
|
6 |
-
st.sidebar.text("Project by JA-RAD")
|
7 |
st.sidebar.title("Navigation")
|
8 |
|
9 |
# --- PAGE SETUP ---
|
@@ -47,11 +46,14 @@ PAGES = {
|
|
47 |
# "Arabic Question Answering": backend.qa,
|
48 |
#}
|
49 |
|
50 |
-
selection = st.sidebar.radio("Pages", list(PAGES.keys()))
|
|
|
51 |
page = PAGES[selection]
|
52 |
|
53 |
# --- NAVIGATION SETUP ---
|
54 |
#pg = st.navigation(pages=[home_page, type_text_page, upload_file_page, about_page]) # WITHOUT SECTIONS
|
55 |
#pg = st.navigation({"Home": [home_page], "Demo": [type_text_page, upload_file_page], "About": [about_page]}) # WITH SECTIONS
|
56 |
|
|
|
|
|
57 |
#pg.run()
|
|
|
3 |
# --- SHARED ON ALL PAGES ---
|
4 |
#st.logo(image=":material/medical_information:")
|
5 |
st.logo("images/medical_information_24dp_1F1F1F_FILL0_wght400_GRAD0_opsz24.png")
|
|
|
6 |
st.sidebar.title("Navigation")
|
7 |
|
8 |
# --- PAGE SETUP ---
|
|
|
46 |
# "Arabic Question Answering": backend.qa,
|
47 |
#}
|
48 |
|
49 |
+
#selection = st.sidebar.radio("Pages", list(PAGES.keys()))
|
50 |
+
selection = st.sidebar.radio("Pages", [home_page, type_text_page, upload_file_page, about_page])
|
51 |
page = PAGES[selection]
|
52 |
|
53 |
# --- NAVIGATION SETUP ---
|
54 |
#pg = st.navigation(pages=[home_page, type_text_page, upload_file_page, about_page]) # WITHOUT SECTIONS
|
55 |
#pg = st.navigation({"Home": [home_page], "Demo": [type_text_page, upload_file_page], "About": [about_page]}) # WITH SECTIONS
|
56 |
|
57 |
+
st.sidebar.text("Project by JA-RAD")
|
58 |
+
|
59 |
#pg.run()
|