LovnishVerma commited on
Commit
231888b
1 Parent(s): 6568c09

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -39,9 +39,12 @@ def validate_aadhaar(aadhaar):
39
  # For simplicity, let's assume any 6-digit number is a valid Aadhaar card
40
  return len(aadhaar) == 6 and aadhaar.isdigit()
41
 
42
- # Take picture using the camera and input Aadhaar card details
43
- img_file_buffer = st.camera_input("Take a picture")
44
  aadhaar_number = st.text_input("Enter Aadhaar Number:")
 
 
 
 
45
 
46
  if img_file_buffer is not None:
47
  # Validate Aadhaar card number
 
39
  # For simplicity, let's assume any 6-digit number is a valid Aadhaar card
40
  return len(aadhaar) == 6 and aadhaar.isdigit()
41
 
42
+ # Take input Aadhaar card details
 
43
  aadhaar_number = st.text_input("Enter Aadhaar Number:")
44
+
45
+ # Take picture using the camera
46
+ img_file_buffer = st.camera_input("Take a picture")
47
+
48
 
49
  if img_file_buffer is not None:
50
  # Validate Aadhaar card number