Spaces:
Sleeping
Sleeping
File size: 634 Bytes
1643dcb 9663e48 5b79ee0 10e74d9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import streamlit as st
from transformers import pipeline
def enter_otp():
st.title("OTP Verification")
email = st.text_input("Enter your email address:")
if st.button("Send OTP"):
# Call the send_otp_to_email function to generate and send OTP
otp = send_otp_to_email(email)
st.success("OTP sent to your email address. Please check your inbox.")
# Prompt user to enter OTP
user_otp = st.text_input("Enter OTP:")
if user_otp == otp:
st.success("OTP verification successful. Access granted!")
else:
st.error("Incorrect OTP. Please try again.") |