File size: 718 Bytes
51fe898
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8811d54
51fe898
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import streamlit as st
import os
from dotenv import load_dotenv

# Create an empty container
placeholder = st.empty()
load_dotenv()

actual_email = os.getenv('email')
actual_password = os.getenv('password')

# Insert a form in the container
with placeholder.form("login"):
    st.markdown("#### Digital Footprint AI Team")
    email = st.text_input("Email")
    password = st.text_input("Password", type="password")
    submit = st.form_submit_button("Login")

if submit and email == actual_email and password == actual_password:
    st.switch_page("pages/agent_6.py")
    st.success("Login successful")
elif submit and email != actual_email and password != actual_password:
    st.error("Login failed")
else:
    pass