Update app.py
Browse files
app.py
CHANGED
|
@@ -27,6 +27,17 @@ def verificar_senha(senha_plana, senha_hash):
|
|
| 27 |
def gerar_hash(senha):
|
| 28 |
return bcrypt.hashpw(senha.encode('utf-8'), bcrypt.gensalt()).decode('utf-8')
|
| 29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
# --- ESTADO DA SESSÃO ---
|
| 31 |
if 'logado' not in st.session_state:
|
| 32 |
st.session_state.logado = False
|
|
|
|
| 27 |
def gerar_hash(senha):
|
| 28 |
return bcrypt.hashpw(senha.encode('utf-8'), bcrypt.gensalt()).decode('utf-8')
|
| 29 |
|
| 30 |
+
# --- REMOVER BARRA SUPERIOR E MENU DO STREAMLIT ---
|
| 31 |
+
hide_st_style = """
|
| 32 |
+
<style>
|
| 33 |
+
#MainMenu {visibility: hidden;}
|
| 34 |
+
header {visibility: hidden;}
|
| 35 |
+
footer {visibility: hidden;}
|
| 36 |
+
.stDeployButton {display:none;}
|
| 37 |
+
</style>
|
| 38 |
+
"""
|
| 39 |
+
st.markdown(hide_st_style, unsafe_allow_html=True)
|
| 40 |
+
|
| 41 |
# --- ESTADO DA SESSÃO ---
|
| 42 |
if 'logado' not in st.session_state:
|
| 43 |
st.session_state.logado = False
|