Skip to content
Snippets Groups Projects
Commit 28aea921 authored by DIANE's avatar DIANE
Browse files

app.py file update

parent 07905ffe
No related branches found
No related tags found
No related merge requests found
from Packages import *
st.set_page_config(page_title="NIRS Utils", page_icon=":goat:", layout="wide",)
# from Modules import *
from mod import *
# from utils.DATA_HANDLING import *
from PIL import Image
import base64
background_img(change=None)
# Load dependencies
from common import *
st.set_page_config(page_title="NIRS Utils", page_icon=":goat:", layout="wide")
# page layout
pages_folder = Path("pages/")
BackgroundImg(change = None)
add_header()
# add_sidebar(pages_folder)
# local_css(css_file / "style_app.css") # replace the md <style> code
add_sidebar(pages_folder)
local_css(css_file / "style_app.css") # replace the md <style> code
# Page header
# Page affiliation
with st.container():
st.subheader("Plateforme d'Analyses Chimiques pour l'Ecologie-PACE :goat:")
st.markdown("""
......@@ -19,23 +24,29 @@ with st.container():
""", unsafe_allow_html=True)
st.markdown('&nbsp;\n&nbsp;\n&nbsp;\n&nbsp;\n&nbsp;\n')
mm1s, mmd2 = st.columns([2,2])
image = Image.open("images/general.JPG")
new_image = image.resize((700, 400))
mmd2.image(new_image)
mm1,mm, mm2=st.columns([2,1.5,2])
with mm1:
# add graphical abstract
c1, c2 = st.columns([2, 2])
with c2:
image = Image.open("images/general.JPG")
new_image = image.resize((700, 400))
c2.image(new_image)
# subpage info
c3, c4, c5 = st.columns([2, 1.5, 2])
with c3:
st.markdown('<h2 class="centered-text">About</h2>', unsafe_allow_html=True)
st.markdown('<h3 class="centered-text"> NIRS Utils is a powerful tool that was developed to ease the spectral data processing process. It benifits from the synergy between web and data science frameworks to offer a user-friendly interface featured a variety of analytical capabilities. Further information can be found here.</h3>', unsafe_allow_html=True)
with mm2:
with c5:
st.markdown('<h2 class="centered-text">Key Features</h2>', unsafe_allow_html=True)
st.markdown('<h3 class="centered-text"> Our app featured a variety of analytical capabilities that makes it the optimal solution for spectral data processing : <br> - Easy-to-use. <br> - Use advanced frameworks. <br> - Enhanced automation capabilities. <br> - Saves your time and efforts.</h3>', unsafe_allow_html=True)
# st.markdown('&nbsp;\n&nbsp;\n&nbsp;\n&nbsp;\n&nbsp;\n')
st.markdown('&nbsp;\n&nbsp;\n&nbsp;\n&nbsp;\n&nbsp;\n')
# add buttons at the bottom of the page
header1, header2, header3,header4 = st.columns(4)
if header1.button("Inputs"):
st.switch_page(pages_folder / '4-inputs.py')
......@@ -44,4 +55,4 @@ if header2.button("Samples Selection"):
if header3.button("Models Creation"):
st.switch_page(pages_folder / '2-model_creation.py')
if header4.button("Predictions"):
st.switch_page(pages_folder / '3-prediction.py')
st.switch_page(pages_folder / '3-prediction.py')
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment