Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ if uploaded_files:
|
|
| 17 |
with open(file_path, "wb") as f:
|
| 18 |
f.write(uploaded_file.read())
|
| 19 |
st.success("Arquivos enviados com sucesso!")
|
| 20 |
-
st.
|
| 21 |
|
| 22 |
# --- Lista de Arquivos ---
|
| 23 |
st.header("📄 Arquivos Disponíveis")
|
|
@@ -38,4 +38,4 @@ else:
|
|
| 38 |
if st.button("🗑 Excluir", key=f"delete_{file}"):
|
| 39 |
os.remove(os.path.join(UPLOAD_FOLDER, file))
|
| 40 |
st.success(f"Arquivo '{file}' excluído.")
|
| 41 |
-
st.
|
|
|
|
| 17 |
with open(file_path, "wb") as f:
|
| 18 |
f.write(uploaded_file.read())
|
| 19 |
st.success("Arquivos enviados com sucesso!")
|
| 20 |
+
st.rerun() # ← correção
|
| 21 |
|
| 22 |
# --- Lista de Arquivos ---
|
| 23 |
st.header("📄 Arquivos Disponíveis")
|
|
|
|
| 38 |
if st.button("🗑 Excluir", key=f"delete_{file}"):
|
| 39 |
os.remove(os.path.join(UPLOAD_FOLDER, file))
|
| 40 |
st.success(f"Arquivo '{file}' excluído.")
|
| 41 |
+
st.rerun() # ← correção aqui também
|