-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmyApp.py
65 lines (50 loc) · 1.42 KB
/
myApp.py
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import sklearn
import streamlit as st
st.code('This is code ...')
st.text('This is Text ...')
st.title('This is a title')
st.markdown('# Heading in Markdown')
st.header('Header')
st.subheader('Sub Header')
st.latex(r'''
a + ar + a r^4 + a r^8
''')
st.write('Can display many things')
df =pd.read_csv('Datasets/iris.csv')
st.dataframe(df)
# st.table(df)
from PIL import Image
img = Image.open('img.jpg')
st.image(img)
st.button('Click Here')
st.checkbox('Check')
st.radio('Radio', ['male','female'])
st.selectbox('Select', ['Yes', 'No'])
st.multiselect('Multiple Selection', ['Machin learning Enginear', 'PHP', 'ASP','HTML 5'])
st.slider('Slide', min_value=1, max_value=10)
st.select_slider('Slide to Select', options=['Low','Medium', 'Large', 'Very Large'])
st.text_input('Enter Text')
st.number_input('Enter a Number')
st.text_area('Text Area')
st.date_input('Date')
st.file_uploader('Select File')
st.color_picker('Color Picker')
#Progress Bar
import time
progress_text = 'Operation in progress. Please wait.'
bar = st.progress(0, text=progress_text)
for percent_complete in range(100):
time.sleep(0.2)
bar.progress(percent_complete + 1, text=progress_text)
time.sleep(1)
bar.empty()
st.button('Rerun')
st.balloons()
st.error('Error Mess')
st.warning('warning Mess')
st.info('info Mess')
st.success('success Mess')