Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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()
|
|
|
|
|
|
|
|
|
|
|
|
|
|