Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
appply ui
  • Loading branch information
lmlouis authored Dec 4, 2023
1 parent edd00c0 commit 05754b6
Showing 1 changed file with 30 additions and 5 deletions.
35 changes: 30 additions & 5 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,40 @@
import os
import utils as utl
from PIL import Image
import time
import streamlit as st
import pandas as pd
import pickle
from prediction_function.module import ciblage, chiffre_affaire,collect_parametres

with open("css/style.css") as f:
st.markdown(f'<style>{f.read()}</style>', unsafe_allow_html=True)

def main():
# Settings
st.set_page_config(layout="wide", page_title='Demo item')
utl.set_page_title('Costumer Segmentation')
st.set_option('deprecation.showPyplotGlobalUse', False)
# Loading CSS
utl.local_css("css/style.css")
utl.remote_css('https://fonts.googleapis.com/icon?family=Material+Icons')
# Logo
dir_root = os.path.dirname(os.path.abspath(__file__))
logo = Image.open(dir_root+'/logo-lm.png')
# Selecting a job
# st.sidebar.image(logo)
st.sidebar.selectbox('Select',('loren','Ipsum'))
st.sidebar.multiselect('Multi',('loren','Ipsum'))
st.sidebar.date_input('Date')
st.sidebar.text_input('Text')
st.sidebar.slider('Slider',min_value=5,max_value=20)
st.warning('Warning')
st.info('Info')
st.error('Error')

with utl.stNotification('Sample notification, always on top and floats (spiner is optional)'):
time.sleep(5)

IMAGE_URL = "background.jpg"

st.image(IMAGE_URL)
if __name__ == '__main__':
main()

st.write(
"""
Expand Down

0 comments on commit 05754b6

Please sign in to comment.