| import streamlit as st | |
| from src.content import ( | |
| HERO_TEXT, | |
| ABOUT_TEXT, | |
| CITATION_LABEL, | |
| CITATION_TEXT_CALCULATOR, | |
| CITATION_TEXT_SOFTWARE, | |
| LICENCE_TEXT, | |
| INTRO_TEXT, | |
| METHODOLOGY_TEXT | |
| ) | |
| from src.expert import expert_mode | |
| from src.calculator import calculator_mode | |
| from src.token_estimator import token_estimator | |
| from src.company import company_mode | |
| st.set_page_config( | |
| layout="wide", | |
| page_title="ECOLOGITS", | |
| page_icon='๐ฌ' | |
| ) | |
| with open( "src/style.css" ) as css: | |
| st.markdown( f'<style>{css.read()}</style>' , unsafe_allow_html= True) | |
| st.html(HERO_TEXT) | |
| st.markdown(INTRO_TEXT) | |
| tab_calculator, tab_company, tab_expert, tab_token, tab_method, tab_about = st.tabs( | |
| [ | |
| '๐งฎ Calculator', | |
| '๐ฉ๐ปโ๐ป Companies', | |
| '๐ค Expert Mode', | |
| '๐ช Tokens estimator', | |
| '๐ Methodology', | |
| 'โน๏ธ About' | |
| ] | |
| ) | |
| with tab_calculator: | |
| calculator_mode() | |
| with tab_company: | |
| company_mode() | |
| with tab_expert: | |
| expert_mode() | |
| with tab_token: | |
| token_estimator() | |
| with tab_method: | |
| st.write(METHODOLOGY_TEXT) | |
| with tab_about: | |
| st.markdown(ABOUT_TEXT, unsafe_allow_html=True) | |
| with st.expander('๐ Citation'): | |
| st.html(CITATION_LABEL) | |
| st.html(CITATION_TEXT_CALCULATOR) | |
| st.html(CITATION_TEXT_SOFTWARE) | |
| st.html(LICENCE_TEXT) |