Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -372,12 +372,11 @@ def login_page():
|
|
| 372 |
else:
|
| 373 |
st.error("Username o password errati")
|
| 374 |
|
| 375 |
-
if
|
| 376 |
-
|
| 377 |
-
|
| 378 |
-
|
| 379 |
-
|
| 380 |
-
|
| 381 |
-
|
| 382 |
-
|
| 383 |
-
main()
|
|
|
|
| 372 |
else:
|
| 373 |
st.error("Username o password errati")
|
| 374 |
|
| 375 |
+
if 'initialized' not in st.session_state:
|
| 376 |
+
st.session_state['initialized'] = True
|
| 377 |
+
inizializza()
|
| 378 |
+
st.set_page_config(layout='wide')
|
| 379 |
+
if not st.session_state['logged_in']:
|
| 380 |
+
login_page()
|
| 381 |
+
if st.session_state['logged_in']:
|
| 382 |
+
main()
|
|
|