Spaces:
Sleeping
Sleeping
Create page1.py
Browse files- pages/page1.py +25 -0
pages/page1.py
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
|
3 |
+
def background():
|
4 |
+
st.markdown(f"""
|
5 |
+
<style>
|
6 |
+
/* Set the background image for the entire app */
|
7 |
+
.stApp {{
|
8 |
+
background-color:rgba(96, 155, 124, 0.5);
|
9 |
+
background-size: 1300px;
|
10 |
+
background-repeat: no-repeat;
|
11 |
+
background-attachment: fixed;
|
12 |
+
background-position: center;
|
13 |
+
}}
|
14 |
+
|
15 |
+
</style>
|
16 |
+
""", unsafe_allow_html=True)
|
17 |
+
def page1():
|
18 |
+
background()
|
19 |
+
st.title("Welcome to Machine learning Life cycle")
|
20 |
+
st.image("ml.png", use_column_width=False)
|
21 |
+
st.markdown("### Data Collection")
|
22 |
+
if st.button("Data Collection"):
|
23 |
+
st.session_state.page = 'Page2'
|
24 |
+
st.experimental_rerun()
|
25 |
+
|