Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -278,6 +278,8 @@ def inizializza():
|
|
| 278 |
st.session_state['analisi_ai'] = False
|
| 279 |
if 'modello_ai' not in st.session_state:
|
| 280 |
st.session_state['modello_ai'] = ''
|
|
|
|
|
|
|
| 281 |
|
| 282 |
def main():
|
| 283 |
st.title('🏠 Immobiliare A.I. ')
|
|
@@ -371,8 +373,10 @@ def login_page():
|
|
| 371 |
st.error("Username o password errati")
|
| 372 |
|
| 373 |
if __name__ == '__main__':
|
| 374 |
-
|
| 375 |
-
|
|
|
|
|
|
|
| 376 |
if not st.session_state['logged_in']:
|
| 377 |
login_page()
|
| 378 |
if st.session_state['logged_in']:
|
|
|
|
| 278 |
st.session_state['analisi_ai'] = False
|
| 279 |
if 'modello_ai' not in st.session_state:
|
| 280 |
st.session_state['modello_ai'] = ''
|
| 281 |
+
if 'initialized' not in st.session_state:
|
| 282 |
+
st.session_state['initialized'] = True
|
| 283 |
|
| 284 |
def main():
|
| 285 |
st.title('🏠 Immobiliare A.I. ')
|
|
|
|
| 373 |
st.error("Username o password errati")
|
| 374 |
|
| 375 |
if __name__ == '__main__':
|
| 376 |
+
if 'initialized' not in st.session_state:
|
| 377 |
+
st.session_state['initialized'] = True
|
| 378 |
+
inizializza()
|
| 379 |
+
st.set_page_config(layout='wide')
|
| 380 |
if not st.session_state['logged_in']:
|
| 381 |
login_page()
|
| 382 |
if st.session_state['logged_in']:
|