Spaces:
Sleeping
Sleeping
Godfrey123
commited on
Commit
•
08d9e13
1
Parent(s):
4d329ed
Update app.py
Browse files
app.py
CHANGED
@@ -1,15 +1,20 @@
|
|
1 |
import streamlit as st
|
2 |
|
3 |
def main():
|
4 |
-
st.title("My
|
5 |
-
st.write("Welcome to
|
6 |
|
7 |
-
# Add
|
8 |
-
st.
|
9 |
-
|
10 |
|
11 |
-
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
if __name__ == "__main__":
|
15 |
main()
|
|
|
1 |
import streamlit as st
|
2 |
|
3 |
def main():
|
4 |
+
st.title("My Enhanced Streamlit App")
|
5 |
+
st.write("Welcome to my Streamlit app!")
|
6 |
|
7 |
+
# Add a button to trigger an action
|
8 |
+
if st.button("Click Me"):
|
9 |
+
st.write("You clicked the button!")
|
10 |
|
11 |
+
# Add a slider for user input
|
12 |
+
age = st.slider("Select Your Age", 0, 100, 25)
|
13 |
+
st.write(f"Your Age: {age}")
|
14 |
+
|
15 |
+
# Add a text input for user input
|
16 |
+
name = st.text_input("Enter Your Name")
|
17 |
+
st.write(f"Hello, {name}!")
|
18 |
|
19 |
if __name__ == "__main__":
|
20 |
main()
|