31 lines
664 B
Python
31 lines
664 B
Python
import streamlit as st
|
|
from dotenv import load_dotenv
|
|
|
|
from app.auth.service import AuthService, clear_session
|
|
|
|
|
|
def main() -> None:
|
|
load_dotenv()
|
|
|
|
st.set_page_config(page_title="СФМ", page_icon=":lock:", layout="wide")
|
|
st.title("СФМ")
|
|
|
|
if not AuthService().run():
|
|
return
|
|
|
|
_, center_col, _ = st.columns([1, 2, 1])
|
|
with center_col:
|
|
st.button(
|
|
"Запустить обработку xml в excel",
|
|
type="primary",
|
|
use_container_width=True,
|
|
)
|
|
|
|
if st.button("Выйти", type="secondary"):
|
|
clear_session()
|
|
st.rerun()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|