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.")