Spaces:
Runtime error
Runtime error
Update app.py
Browse files18 unmodified lines192021222223252427282930313233343536373839252627282930313233343536373839404142434418 unmodified linesimport reimport iofrom collections import Counterimport secrets
st.set_page_config(page_title="Import Fatture AI✨")
st.title("Import Fatture AI ✨")login_placeholder = st.empty()
with login_placeholder.container(): container = st.container(border=True) username = container.text_input('Username') password = container.text_input('Passowrd') login = container.button(' Login ', type='primary')
if not login or username != os.getenv("LOGIN_USER") or password != os.getenv("LOGIN_PASSWORD"): if login: st.error('Password Errata') st.stop()login_placeholder.empty()
# Gestionione LOGINif "logged" not in st.session_state: st.session_state.logged = Falseif st.session_state.logged == False: login_placeholder = st.empty() with login_placeholder.container(): container = st.container(border=True) username = container.text_input('Username') password = container.text_input('Passowrd') login = container.button(' Login ', type='primary') if not login or username != os.getenv("LOGIN_USER") or password != os.getenv("LOGIN_PASSWORD"): if login: st.error('Password Errata') st.stop() st.session_state.logged = True login_placeholder.empty()
with st.expander("Guida completa"): st.write("""Questa applicazione Python, basata su Streamlit, integra servizi di intelligenza artificiale di Gemini per automatizzare l'estrazione e la validazione dei dati dalle fatture. Il sistema gestisce documenti in vari formati (PDF, immagini) e li elabora in maniera modulare per facilitare la conversione e la verifica delle informazioni.app.py+17-15