Skip to content
Snippets Groups Projects
Commit 152c6cbb authored by Nicolas Barthes's avatar Nicolas Barthes
Browse files

style/style.css loading corrected

parent 30924ddd
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,6 @@ from Packages import * ...@@ -6,7 +6,6 @@ from Packages import *
def local_css(file_name): def local_css(file_name):
with open(file_name) as f: with open(file_name) as f:
st.markdown(f"<style>{f.read()}</style>", unsafe_allow_html=True) st.markdown(f"<style>{f.read()}</style>", unsafe_allow_html=True)
local_css("style/style.css")
# predict module # predict module
def prediction(NIRS_csv, qsep, qhdr, model): def prediction(NIRS_csv, qsep, qhdr, model):
......
from Class_Mod import PlsR, LinearPCA, Umap, find_col_index, PinardPlsr from Class_Mod import PlsR, LinearPCA, Umap, find_col_index, PinardPlsr
from Class_Mod import LWPLSR, list_files, metrics, TpeIpls, reg_plot, resid_plot, Sk_Kmeans, DxRead, Hdbscan, read_dx, PlsProcess from Class_Mod import LWPLSR, list_files, metrics, TpeIpls, reg_plot, resid_plot, Sk_Kmeans, DxRead, Hdbscan, read_dx, PlsProcess
from Class_Mod.Miscellaneous import prediction, download_results, plot_spectra from Class_Mod.Miscellaneous import prediction, download_results, plot_spectra, local_css
from style.header import add_header from style.header import add_header
\ No newline at end of file local_css("style/style.css")
\ No newline at end of file
...@@ -6,15 +6,6 @@ from Modules import * ...@@ -6,15 +6,6 @@ from Modules import *
from Class_Mod.DATA_HANDLING import * from Class_Mod.DATA_HANDLING import *
# HTML pour le bandeau "CEFE - CNRS"
# bandeau_html = """
# <div style="width: 100%; background-color: #4682B4; padding: 10px; margin-bottom: 10px;">
# <h1 style="text-align: center; color: white;">CEFE - CNRS</h1>
# </div>
# """
# Injecter le code HTML du bandeau
# st.markdown(bandeau_html, unsafe_allow_html=True)
add_header() add_header()
# # TOC menu on the left # # TOC menu on the left
...@@ -27,10 +18,6 @@ show_pages( ...@@ -27,10 +18,6 @@ show_pages(
] ]
) )
# hide_pages("Samples Selection")
# hide_pages("Models Creation")
# hide_pages("Predictions")
with st.sidebar: with st.sidebar:
interface = st.selectbox(label="Interface", options=['simple', 'advanced'], key='interface') interface = st.selectbox(label="Interface", options=['simple', 'advanced'], key='interface')
...@@ -54,22 +41,6 @@ with st.sidebar: ...@@ -54,22 +41,6 @@ with st.sidebar:
# Page header # Page header
with st.container(): with st.container():
# Centrer les boutons - CODE DEPLACE dans le style/style.css
# st.markdown(
# """
# <style>
# .stButton>button {
# display: block;
# margin: 0 auto;
# width: 200px;
# height: 50px;
# font-size: 16px;
# }
# </style>
# """,
# unsafe_allow_html=True
# )
header1, header2, header3,header4 = st.columns(4) header1, header2, header3,header4 = st.columns(4)
if header1.button("Inputs"): if header1.button("Inputs"):
st.switch_page('pages\\4-inputs.py') st.switch_page('pages\\4-inputs.py')
...@@ -83,4 +54,4 @@ with st.container(): ...@@ -83,4 +54,4 @@ with st.container():
st.title("NIRS Utils") st.title("NIRS Utils")
st.write("Samples selection (PCA, [UMAP](https://umap-learn.readthedocs.io/en/latest/how_umap_works.html), ...), Predictive Modelling ([Pinard](https://github.com/GBeurier/pinard), [LWPLSR](https://doi.org/10.1002/cem.3209), ...), and Predictions using your data (CSV or DX files) and/or PACE NIRS Database.") st.write("Samples selection (PCA, [UMAP](https://umap-learn.readthedocs.io/en/latest/how_umap_works.html), ...), Predictive Modelling ([Pinard](https://github.com/GBeurier/pinard), [LWPLSR](https://doi.org/10.1002/cem.3209), ...), and Predictions using your data (CSV or DX files) and/or PACE NIRS Database.")
#st.image(img_general) #st.image(img_general)
st.markdown("### We could add documentation here ###") st.markdown("### We could add documentation here ###")
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment