|
import streamlit as st |
|
import app_matching_page |
|
import pkg_resources |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def show_navbar(): |
|
|
|
|
|
|
|
css = ''' |
|
<style> |
|
.stTabs [data-baseweb="tab-list"] button [data-testid="stMarkdownContainer"] p { |
|
font-size:1rem; |
|
} |
|
</style> |
|
''' |
|
st.markdown(css, unsafe_allow_html=True) |
|
tab1, tab2, tab3, tab4 = st.tabs([ |
|
"π Landing Page", |
|
"π All Projects", |
|
"π― Single-Project Matching", |
|
"π Multi-Project Matching" |
|
]) |
|
|
|
with tab1: |
|
app_matching_page.show_landing_page() |
|
installed_packages = pkg_resources.working_set |
|
package_list_ = "" |
|
for package in installed_packages: |
|
package_list_ = package_list_ + f"{package.key}=={package.version}\n" |
|
st.download_button('Download Requirements', package_list_, file_name='Synergy_requirements.txt') |
|
|
|
with tab2: |
|
app_matching_page.show_all_projects_page() |
|
|
|
with tab3: |
|
app_matching_page.show_single_matching_page() |
|
|
|
with tab4: |
|
app_matching_page.show_multi_matching_page() |
|
|