-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathapplication.py
More file actions
33 lines (30 loc) · 1.04 KB
/
application.py
File metadata and controls
33 lines (30 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import os
import streamlit as st
import utils as utl
from PIL import Image
import time
def main():
# Settings
st.set_page_config(layout="wide", page_title='Demo item')
utl.set_page_title('Inshop Analytics tool')
st.set_option('deprecation.showPyplotGlobalUse', False)
# Loading CSS
utl.local_css("frontend/css/streamlit.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.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)
if __name__ == '__main__':
main()