awacke1 commited on
Commit
b459af6
Β·
1 Parent(s): 68a9462

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -98,14 +98,14 @@ if 'hash' in query_params:
98
  # Display the main area if authenticated
99
  if st.session_state['authenticated']:
100
  st.write("## Main Area")
101
- # [Display main area content]
 
 
 
 
 
 
 
102
  else:
103
  if st.sidebar.button('πŸ“¨ Send Verify Request'):
104
  send_verification_sms()
105
-
106
- # Display history for the specific phone number
107
- st.write("## πŸ“œ Verification History")
108
- history_files = [f for f in os.listdir() if f.startswith('phone-') and st.session_state['phone_number'] in f]
109
- for file_name in history_files:
110
- with open(file_name, 'r') as file:
111
- st.write(f"{file_name}: {file.read()}")
 
98
  # Display the main area if authenticated
99
  if st.session_state['authenticated']:
100
  st.write("## Main Area")
101
+
102
+ # Display history for the specific phone number
103
+ st.write("## πŸ“œ Authenticated! Below is Your Verification History")
104
+ history_files = [f for f in os.listdir() if f.startswith('phone-') and st.session_state['phone_number'] in f]
105
+ for file_name in history_files:
106
+ with open(file_name, 'r') as file:
107
+ st.write(f"{file_name}: {file.read()}")
108
+
109
  else:
110
  if st.sidebar.button('πŸ“¨ Send Verify Request'):
111
  send_verification_sms()