AjayKr09 commited on
Commit
5b55d5f
·
verified ·
1 Parent(s): 22c8246

Delete app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -31
app.py DELETED
@@ -1,31 +0,0 @@
1
- import streamlit as st
2
-
3
- def page1():
4
- st.write("This is Page 1!")
5
-
6
- def page2():
7
- st.write("This is Page 2!")
8
-
9
- # Create a Streamlit app
10
- app = st.StreamlitApp()
11
-
12
- # Define the main app logic
13
- def main():
14
- st.title("Welcome to My App")
15
-
16
- # Create two buttons
17
- button1 = st.button("Go to Page 1")
18
- button2 = st.button("Go to Page 2")
19
-
20
- # Use Streamlit's routing feature to navigate between pages
21
- if button1:
22
- app.page("page1")
23
- elif button2:
24
- app.page("page2")
25
-
26
- # Register the pages with Streamlit
27
- app.page("page1", page1)
28
- app.page("page2", page2)
29
-
30
- # Run the main app logic
31
- main()