hammammahdy commited on
Commit
86b3cfb
·
1 Parent(s): c6d1ba2

final commit

Browse files
Files changed (3) hide show
  1. app.py +6 -2
  2. eda.png +0 -0
  3. eda.py +26 -0
app.py CHANGED
@@ -1,8 +1,12 @@
1
  import streamlit as st
2
  import prediction
 
3
 
4
- # page = st.sidebar.selectbox('Pilih Halaman :', ('EDA', 'Prediction'))
5
  # if page == 'EDA':
6
  # eda.run()
7
  # else:
8
- prediction.run()
 
 
 
 
1
  import streamlit as st
2
  import prediction
3
+ import eda
4
 
5
+ page = st.sidebar.selectbox('Pilih Halaman :', ('Prediction', 'EDA'))
6
  # if page == 'EDA':
7
  # eda.run()
8
  # else:
9
+ if page == 'Prediction':
10
+ prediction.run()
11
+ else:
12
+ eda.run()
eda.png ADDED
eda.py ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ import streamlit as st
3
+ from PIL import Image
4
+
5
+ def run():
6
+
7
+ # membuat title
8
+ st.title('Computer Vision Artificial Neural Network')
9
+
10
+ # membuat subheader
11
+ st.subheader('EDA Between Daisy and Dandelion Flower')
12
+
13
+ # menambahkan gambar
14
+ image = Image.open('header2.jpg')
15
+ st.image(image)
16
+
17
+ st.write('#### Dataset Images')
18
+ # menambahkan gambar
19
+ image1 = Image.open('eda.png')
20
+ st.image(image1)
21
+
22
+ st.write('##### Dataset source : Kaggle')
23
+ st.write('###### https://www.kaggle.com/datasets/alsaniipe/flowers-dataset')
24
+
25
+ if __name__ == '__main__':
26
+ run()