imranjamal commited on
Commit
c97b125
·
verified ·
1 Parent(s): 65e14ac

Create practise1.py

Browse files
Files changed (1) hide show
  1. practise1.py +16 -0
practise1.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ st.title("Hello World!")
4
+
5
+ st.write("This is my first Streamlit app on Hugging Face Spaces.")
6
+
7
+
8
+
9
+ name = st.text_input("Enter your name:")
10
+ age = st.slider("Select your age:", 0, 100, 25)
11
+
12
+ if st.button("Submit"):
13
+ st.write(f"Hello {name}, you are {age} years old!")
14
+
15
+
16
+