Spaces:
Running
Running
salomonsky
commited on
Commit
•
9300241
1
Parent(s):
a201de7
Update app.py
Browse files
app.py
CHANGED
@@ -157,4 +157,8 @@ for idx, file in enumerate(files):
|
|
157 |
prompt_file = prompts.get(file.stem.replace("image_", ""), None)
|
158 |
prompt_text = Path(prompt_file).read_text() if prompt_file else "No disponible"
|
159 |
st.image(image, caption=f"Imagen {idx+1}")
|
160 |
-
|
|
|
|
|
|
|
|
|
|
157 |
prompt_file = prompts.get(file.stem.replace("image_", ""), None)
|
158 |
prompt_text = Path(prompt_file).read_text() if prompt_file else "No disponible"
|
159 |
st.image(image, caption=f"Imagen {idx+1}")
|
160 |
+
|
161 |
+
# Agregar botón para eliminar la imagen
|
162 |
+
if st.button(f"Eliminar Imagen {idx+1}", key=f"delete_{idx}"):
|
163 |
+
file.unlink()
|
164 |
+
st.experimental_rerun()
|