safiaa02 commited on
Commit
6e05e55
·
verified ·
1 Parent(s): ea16488

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -6,8 +6,12 @@ from dateutil.relativedelta import relativedelta
6
  st.set_page_config(page_title="Age Calculator", page_icon="🎂")
7
  st.title("🎂 Age Calculator")
8
 
9
- # User Input
10
- birth_date = st.date_input("Enter your birth date:")
 
 
 
 
11
 
12
  # Current Date
13
  today = date.today()
 
6
  st.set_page_config(page_title="Age Calculator", page_icon="🎂")
7
  st.title("🎂 Age Calculator")
8
 
9
+ # User Input with extended range
10
+ birth_date = st.date_input(
11
+ "Enter your birth date:",
12
+ min_value=date(1950, 1, 1),
13
+ max_value=date.today()
14
+ )
15
 
16
  # Current Date
17
  today = date.today()