|
import os |
|
import streamlit as st |
|
|
|
|
|
USERNAME = os.environ["USERNAME"] |
|
PASSWORD = os.environ["PASSWORD"] |
|
|
|
|
|
st.sidebar.title("π AIXNet Login") |
|
with st.sidebar.form(key='login_form'): |
|
username = st.text_input("π€ Username") |
|
password = st.text_input("π Password", type="password") |
|
login_button = st.form_submit_button(label="π Login") |
|
|
|
if login_button: |
|
if username == USERNAME and password == PASSWORD: |
|
st.sidebar.success("π Login successful!") |
|
|
|
|
|
st.title("π AIXNet Tasks") |
|
data = { |
|
"π Task": ["π» Code assist"], |
|
"π₯οΈ Instance Type": ["t2.micro"], |
|
"π° Price": ["$0.05 / hour"], |
|
"π IPv4": ["some_url_here"] |
|
} |
|
|
|
st.table(data) |
|
else: |
|
st.sidebar.error("β Invalid username or password. Please try again.") |
|
else: |
|
st.sidebar.info("π Please enter your credentials to log in.") |
|
|